diff options
author | Jose Antonio Marquez | 2012-05-24 00:07:23 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-24 00:07:23 -0700 |
commit | 5914c5b2209c4b8daac4249bb76cda5c9314c4e6 (patch) | |
tree | f0910e57f64d1638f00bf7f6449d479fb377bfac /js/tools/SelectionTool.js | |
parent | 16decc5726eafbb25675c61be6df85a378ac1fac (diff) | |
download | ninja-5914c5b2209c4b8daac4249bb76cda5c9314c4e6.tar.gz |
Cleaning up referencing to 'documentRoot' and '_document'
Moved to reference new model in DOM architecture rework. This should not affect anything, just moving the references, and also the setting to the render methods in the design view.
Diffstat (limited to 'js/tools/SelectionTool.js')
-rwxr-xr-x | js/tools/SelectionTool.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index 5c8b15ae..4bafa12a 100755 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js | |||
@@ -165,7 +165,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
165 | box[3] = point.y; | 165 | box[3] = point.y; |
166 | 166 | ||
167 | //selectionManagerModule.selectionManager.marqueeSelection(box); | 167 | //selectionManagerModule.selectionManager.marqueeSelection(box); |
168 | var childNodes = this.application.ninja.currentDocument.documentRoot.childNodes, | 168 | var childNodes = this.application.ninja.currentDocument.model.documentRoot.childNodes, |
169 | selectionController = this.application.ninja.selectionController; | 169 | selectionController = this.application.ninja.selectionController; |
170 | childNodes = Array.prototype.slice.call(childNodes, 0); | 170 | childNodes = Array.prototype.slice.call(childNodes, 0); |
171 | childNodes.forEach(function(item) { | 171 | childNodes.forEach(function(item) { |
@@ -224,7 +224,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
224 | if(this.application.ninja.selectedElements.length > 0) { | 224 | if(this.application.ninja.selectedElements.length > 0) { |
225 | this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0]; | 225 | this.application.ninja.currentSelectedContainer = this.application.ninja.selectedElements[0]; |
226 | } else { | 226 | } else { |
227 | this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.documentRoot; | 227 | this.application.ninja.currentSelectedContainer = this.application.ninja.currentDocument.model.documentRoot; |
228 | } | 228 | } |
229 | } | 229 | } |
230 | }, | 230 | }, |
@@ -690,7 +690,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
690 | this.application.ninja.stage.clearDrawingCanvas(); | 690 | this.application.ninja.stage.clearDrawingCanvas(); |
691 | 691 | ||
692 | var item = this._target; | 692 | var item = this._target; |
693 | if(!item || (item === this.application.ninja.currentDocument.documentRoot)) | 693 | if(!item || (item === this.application.ninja.currentDocument.model.documentRoot)) |
694 | { | 694 | { |
695 | return; | 695 | return; |
696 | } | 696 | } |