diff options
author | Pushkar Joshi | 2012-06-12 07:09:56 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-06-12 07:09:56 -0700 |
commit | fa1dcaaed3d0ed83ef7982ff198dd241c8b9670e (patch) | |
tree | fbd5b770dcbf6a23f2b10971f2485a4ef4451c9f /js/stage/layout.js | |
parent | 71bc93ad0d53a77d70c688b2b3aacf694dd1de91 (diff) | |
parent | 6854a72504f57903bd5de003e377f2aefb02d0da (diff) | |
download | ninja-fa1dcaaed3d0ed83ef7982ff198dd241c8b9670e.tar.gz |
Merge branch 'master' into pentool
Diffstat (limited to 'js/stage/layout.js')
-rwxr-xr-x | js/stage/layout.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js index 71296405..1831f4e7 100755 --- a/js/stage/layout.js +++ b/js/stage/layout.js | |||
@@ -102,11 +102,11 @@ exports.Layout = Montage.create(Component, { | |||
102 | // Make an array copy of the line node list which is not an array like object | 102 | // Make an array copy of the line node list which is not an array like object |
103 | this.domTree = this.application.ninja.currentDocument.model.views.design.getLiveNodeList(true); | 103 | this.domTree = this.application.ninja.currentDocument.model.views.design.getLiveNodeList(true); |
104 | // Index of the current container | 104 | // Index of the current container |
105 | containerIndex = this.domTree.indexOf(this.application.ninja.currentSelectedContainer); | 105 | containerIndex = this.domTree.indexOf(this.currentDocument.model.domContainer); |
106 | 106 | ||
107 | if(containerIndex < 0) { | 107 | if(containerIndex < 0) { |
108 | // Stage is the container. | 108 | // Stage is the container. |
109 | this.domTree = Array.prototype.slice.call(this.application.ninja.currentSelectedContainer.childNodes, 0); | 109 | this.domTree = Array.prototype.slice.call(this.currentDocument.model.domContainer.childNodes, 0); |
110 | } else { | 110 | } else { |
111 | // Child nodes of the container | 111 | // Child nodes of the container |
112 | this.domTree = Array.prototype.slice.call(this.domTree[containerIndex].childNodes, 0); | 112 | this.domTree = Array.prototype.slice.call(this.domTree[containerIndex].childNodes, 0); |
@@ -204,7 +204,7 @@ exports.Layout = Montage.create(Component, { | |||
204 | bounds3D[j] = tmpPt; | 204 | bounds3D[j] = tmpPt; |
205 | } | 205 | } |
206 | 206 | ||
207 | if(item.uuid === this.application.ninja.currentSelectedContainer.uuid) { | 207 | if(item.uuid === this.currentDocument.model.domContainer.uuid) { |
208 | this.ctx.save(); | 208 | this.ctx.save(); |
209 | this.ctx.strokeStyle = "#C61F00"; | 209 | this.ctx.strokeStyle = "#C61F00"; |
210 | 210 | ||