Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/diff/DiffChangeset.js
Show All 18 Lines | construct : function(node) { | ||||
this._node = node; | this._node = node; | ||||
var data = this._getNodeData(); | var data = this._getNodeData(); | ||||
this._renderURI = data.renderURI; | this._renderURI = data.renderURI; | ||||
this._ref = data.ref; | this._ref = data.ref; | ||||
this._renderer = data.renderer; | this._renderer = data.renderer; | ||||
this._highlight = data.highlight; | this._highlight = data.highlight; | ||||
this._documentEngine = data.documentEngine; | |||||
this._encoding = data.encoding; | this._encoding = data.encoding; | ||||
this._loaded = data.loaded; | this._loaded = data.loaded; | ||||
this._treeNodeID = data.treeNodeID; | this._treeNodeID = data.treeNodeID; | ||||
this._leftID = data.left; | this._leftID = data.left; | ||||
this._rightID = data.right; | this._rightID = data.right; | ||||
this._displayPath = JX.$H(data.displayPath); | this._displayPath = JX.$H(data.displayPath); | ||||
this._icon = data.icon; | this._icon = data.icon; | ||||
this._inlines = []; | this._inlines = []; | ||||
}, | }, | ||||
members: { | members: { | ||||
_node: null, | _node: null, | ||||
_loaded: false, | _loaded: false, | ||||
_sequence: 0, | _sequence: 0, | ||||
_stabilize: false, | _stabilize: false, | ||||
_renderURI: null, | _renderURI: null, | ||||
_ref: null, | _ref: null, | ||||
_renderer: null, | _renderer: null, | ||||
_highlight: null, | _highlight: null, | ||||
_documentEngine: null, | |||||
_encoding: null, | _encoding: null, | ||||
_undoTemplates: null, | _undoTemplates: null, | ||||
_leftID: null, | _leftID: null, | ||||
_rightID: null, | _rightID: null, | ||||
_inlines: null, | _inlines: null, | ||||
_visible: true, | _visible: true, | ||||
▲ Show 20 Lines • Show All 247 Lines • ▼ Show 20 Lines | members: { | ||||
/** | /** | ||||
* Get parameters which define the current rendering options. | * Get parameters which define the current rendering options. | ||||
*/ | */ | ||||
_getViewParameters: function() { | _getViewParameters: function() { | ||||
return { | return { | ||||
ref: this._ref, | ref: this._ref, | ||||
renderer: this.getRenderer() || '', | renderer: this.getRenderer() || '', | ||||
highlight: this._highlight || '', | highlight: this._highlight || '', | ||||
engine: this._documentEngine || '', | |||||
encoding: this._encoding || '' | encoding: this._encoding || '' | ||||
}; | }; | ||||
}, | }, | ||||
/** | /** | ||||
* Get the active @{class:JX.Routable} for this changeset. | * Get the active @{class:JX.Routable} for this changeset. | ||||
* | * | ||||
* After issuing a request with @{method:load} or @{method:reload}, you | * After issuing a request with @{method:load} or @{method:reload}, you | ||||
Show All 40 Lines | setHighlight: function(highlight) { | ||||
this._highlight = highlight; | this._highlight = highlight; | ||||
return this; | return this; | ||||
}, | }, | ||||
getHighlight: function() { | getHighlight: function() { | ||||
return this._highlight; | return this._highlight; | ||||
}, | }, | ||||
setDocumentEngine: function(engine) { | |||||
this._documentEngine = engine; | |||||
}, | |||||
getDocumentEngine: function(engine) { | |||||
return this._documentEngine; | |||||
}, | |||||
getSelectableItems: function() { | getSelectableItems: function() { | ||||
var items = []; | var items = []; | ||||
items.push({ | items.push({ | ||||
type: 'file', | type: 'file', | ||||
changeset: this, | changeset: this, | ||||
target: this, | target: this, | ||||
nodes: { | nodes: { | ||||
▲ Show 20 Lines • Show All 512 Lines • Show Last 20 Lines |