aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-18 00:41:31 -0700
committerValerio Virgillito2012-05-18 00:41:31 -0700
commit084bb924bc3c3a6ad1e2e21099399bba4d473fed (patch)
treedea3f338962945f4a695ca8926d0f3bf75676557 /js/ninja.reel/ninja.js
parent7a94696e19b14e15261df516e2ba75e693b1313d (diff)
downloadninja-084bb924bc3c3a6ad1e2e21099399bba4d473fed.tar.gz
fixing some snapping bugs
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index ba87e2d5..067a005f 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -134,10 +134,21 @@ exports.Ninja = Montage.create(Component, {
134 value: [] 134 value: []
135 }, 135 },
136 136
137 currentSelectedContainer: { 137 _currentSelectedContainer: {
138 value: null 138 value: null
139 }, 139 },
140 140
141 currentSelectedContainer: {
142 get: function() {
143 return this._currentSelectedContainer;
144 },
145 set: function(value) {
146 if(value !== this._currentSelectedContainer) {
147 this._currentSelectedContainer = value;
148 }
149 }
150 },
151
141 templateDidLoad: { 152 templateDidLoad: {
142 value: function() { 153 value: function() {
143 this.ninjaVersion = window.ninjaVersion.ninja.version; 154 this.ninjaVersion = window.ninjaVersion.ninja.version;
@@ -285,7 +296,7 @@ exports.Ninja = Montage.create(Component, {
285 this.currentDocument = this.documentController.activeDocument; 296 this.currentDocument = this.documentController.activeDocument;
286 297
287 if(this.currentDocument.documentRoot) { 298 if(this.currentDocument.documentRoot) {
288 this.application.ninja.currentSelectedContainer = this.currentDocument.documentRoot; 299 this._currentSelectedContainer = this.selectionController._currentSelectedContainer = this.currentDocument.documentRoot;
289 } 300 }
290 } 301 }
291 }, 302 },