diff options
author | Valerio Virgillito | 2012-06-08 16:59:59 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-08 16:59:59 -0700 |
commit | 806974142d44afdd23534bf2d18eff0a8e701e0c (patch) | |
tree | 811acab38c063ca4fb594bcab0a6dc5e143f29a2 /js/ninja.reel/ninja.js | |
parent | d14249dd2d76e9eb8d14733c10393d36bd2ea8ee (diff) | |
download | ninja-806974142d44afdd23534bf2d18eff0a8e701e0c.tar.gz |
rewrite: currentSelectedContainer -> domContainer
Fixed the currentSelectedContainer by removing bindings and using property change on the current document
added the red outline back.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-x | js/ninja.reel/ninja.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 38f5efcf..b57aecd2 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -147,21 +147,6 @@ exports.Ninja = Montage.create(Component, { | |||
147 | value: [] | 147 | value: [] |
148 | }, | 148 | }, |
149 | 149 | ||
150 | _currentSelectedContainer: { | ||
151 | value: null | ||
152 | }, | ||
153 | |||
154 | currentSelectedContainer: { | ||
155 | get: function() { | ||
156 | return this._currentSelectedContainer; | ||
157 | }, | ||
158 | set: function(value) { | ||
159 | if(value !== this._currentSelectedContainer) { | ||
160 | this._currentSelectedContainer = value; | ||
161 | } | ||
162 | } | ||
163 | }, | ||
164 | |||
165 | templateDidLoad: { | 150 | templateDidLoad: { |
166 | value: function() { | 151 | value: function() { |
167 | this.ninjaVersion = window.ninjaVersion.ninja.version; | 152 | this.ninjaVersion = window.ninjaVersion.ninja.version; |
@@ -321,11 +306,6 @@ exports.Ninja = Montage.create(Component, { | |||
321 | // TODO: Remove this when integrating the next montage | 306 | // TODO: Remove this when integrating the next montage |
322 | this.documentList.selectedObjects = [doc]; | 307 | this.documentList.selectedObjects = [doc]; |
323 | 308 | ||
324 | if(doc.currentView === "design") { | ||
325 | // TODO: Bind directly to the model of the document in components instead of this property | ||
326 | this._currentSelectedContainer = null; | ||
327 | this.currentSelectedContainer = doc.model.documentRoot; | ||
328 | } | ||
329 | } | 309 | } |
330 | }, | 310 | }, |
331 | 311 | ||