diff options
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 15 |
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 | }, |