diff options
author | Valerio Virgillito | 2012-05-24 11:59:17 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-24 11:59:17 -0700 |
commit | 70ff8dd670bc37c14caf850e06791d1e293b1e4b (patch) | |
tree | 8e00a27c6c908dda3e816d1f5aaf0d2a889ca5dc /js/panels/properties.reel/sections/position-size.reel | |
parent | a8eb5c65a21af3bf8d8b8eb3e65b494b8bd9bc01 (diff) | |
parent | a6db492176a85546047dae6d5ecb9cfc4325e043 (diff) | |
download | ninja-70ff8dd670bc37c14caf850e06791d1e293b1e4b.tar.gz |
Merge pull request #255 from joseeight/Document
Cleaning up referencing to documentRoot
Diffstat (limited to 'js/panels/properties.reel/sections/position-size.reel')
-rwxr-xr-x | js/panels/properties.reel/sections/position-size.reel/position-size.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/panels/properties.reel/sections/position-size.reel/position-size.js b/js/panels/properties.reel/sections/position-size.reel/position-size.js index 10e084be..7c24e02a 100755 --- a/js/panels/properties.reel/sections/position-size.reel/position-size.js +++ b/js/panels/properties.reel/sections/position-size.reel/position-size.js | |||
@@ -158,7 +158,7 @@ exports.PositionSize = Montage.create(Component, { | |||
158 | if(!event.wasSetByCode) { | 158 | if(!event.wasSetByCode) { |
159 | if(this.savedPosition) prevPosition = [this.savedPosition + "px"]; | 159 | if(this.savedPosition) prevPosition = [this.savedPosition + "px"]; |
160 | 160 | ||
161 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 161 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.model.documentRoot]; |
162 | 162 | ||
163 | if(this.bindButton.pressed) { | 163 | if(this.bindButton.pressed) { |
164 | 164 | ||
@@ -183,7 +183,7 @@ exports.PositionSize = Montage.create(Component, { | |||
183 | if(!event.wasSetByCode) { | 183 | if(!event.wasSetByCode) { |
184 | if(this.savedPosition) prevPosition = [this.savedPosition + "px"]; | 184 | if(this.savedPosition) prevPosition = [this.savedPosition + "px"]; |
185 | 185 | ||
186 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 186 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.model.documentRoot]; |
187 | 187 | ||
188 | if(this.bindButton.pressed) { | 188 | if(this.bindButton.pressed) { |
189 | 189 | ||
@@ -231,7 +231,7 @@ exports.PositionSize = Montage.create(Component, { | |||
231 | 231 | ||
232 | if(!this.savedPosition) this.savedPosition = this.heightSize; | 232 | if(!this.savedPosition) this.savedPosition = this.heightSize; |
233 | 233 | ||
234 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 234 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.model.documentRoot]; |
235 | 235 | ||
236 | if(this.bindButton.pressed) { | 236 | if(this.bindButton.pressed) { |
237 | 237 | ||
@@ -256,7 +256,7 @@ exports.PositionSize = Montage.create(Component, { | |||
256 | 256 | ||
257 | if(!this.savedPosition) this.savedPosition = this.widthSize; | 257 | if(!this.savedPosition) this.savedPosition = this.widthSize; |
258 | 258 | ||
259 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.documentRoot]; | 259 | this.application.ninja.selectedElements.length ? items = this.application.ninja.selectedElements : items = [this.application.ninja.currentDocument.model.documentRoot]; |
260 | 260 | ||
261 | if(this.bindButton.pressed) { | 261 | if(this.bindButton.pressed) { |
262 | var newHeight = Math.round(this.aspectRatioWidth * this.widthControl.value); | 262 | var newHeight = Math.round(this.aspectRatioWidth * this.widthControl.value); |