diff options
author | Valerio Virgillito | 2012-06-11 17:46:29 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-11 17:46:29 -0700 |
commit | b6c88f548c8d3756738e534418732710af733f03 (patch) | |
tree | d651ce2811019a3bccfd8be1326762cd2c601316 /js/ninja.reel | |
parent | 91123fef348ec54d89005adbc151e816856a6a18 (diff) | |
parent | 6854a72504f57903bd5de003e377f2aefb02d0da (diff) | |
download | ninja-b6c88f548c8d3756738e534418732710af733f03.tar.gz |
Merge branch 'refs/heads/master' into montage-v10-integration
Conflicts:
js/io/system/ninjalibrary.json
js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel')
-rwxr-xr-x | js/ninja.reel/ninja.html | 3 | ||||
-rwxr-xr-x | js/ninja.reel/ninja.js | 20 |
2 files changed, 1 insertions, 22 deletions
diff --git a/js/ninja.reel/ninja.html b/js/ninja.reel/ninja.html index a63422fb..00740ea9 100755 --- a/js/ninja.reel/ninja.html +++ b/js/ninja.reel/ninja.html | |||
@@ -246,7 +246,7 @@ | |||
246 | "element":{"#" : "breadCrumbComponent"} | 246 | "element":{"#" : "breadCrumbComponent"} |
247 | }, | 247 | }, |
248 | "bindings" : { | 248 | "bindings" : { |
249 | "container": {"<-": "@owner.currentSelectedContainer"}, | 249 | |
250 | "currentDocument": {"<-": "@documentList.selectedObjects.0"} | 250 | "currentDocument": {"<-": "@documentList.selectedObjects.0"} |
251 | } | 251 | } |
252 | }, | 252 | }, |
@@ -291,7 +291,6 @@ | |||
291 | "selectionController": { | 291 | "selectionController": { |
292 | "prototype": "js/controllers/selection-controller", | 292 | "prototype": "js/controllers/selection-controller", |
293 | "bindings" : { | 293 | "bindings" : { |
294 | "selectionContainer": {"<-": "@owner.currentSelectedContainer"}, | ||
295 | "currentDocument": {"<-": "@documentList.selectedObjects.0"}, | 294 | "currentDocument": {"<-": "@documentList.selectedObjects.0"}, |
296 | "selectedElements": {"<-": "@documentList.selectedObjects.0.model.selection"} | 295 | "selectedElements": {"<-": "@documentList.selectedObjects.0.model.selection"} |
297 | } | 296 | } |
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js index 33808cf3..8b874a36 100755 --- a/js/ninja.reel/ninja.js +++ b/js/ninja.reel/ninja.js | |||
@@ -297,21 +297,6 @@ exports.Ninja = Montage.create(Component, { | |||
297 | value: [] | 297 | value: [] |
298 | }, | 298 | }, |
299 | 299 | ||
300 | _currentSelectedContainer: { | ||
301 | value: null | ||
302 | }, | ||
303 | |||
304 | currentSelectedContainer: { | ||
305 | get: function() { | ||
306 | return this._currentSelectedContainer; | ||
307 | }, | ||
308 | set: function(value) { | ||
309 | if(value !== this._currentSelectedContainer) { | ||
310 | this._currentSelectedContainer = value; | ||
311 | } | ||
312 | } | ||
313 | }, | ||
314 | |||
315 | templateDidLoad: { | 300 | templateDidLoad: { |
316 | value: function() { | 301 | value: function() { |
317 | this.ninjaVersion = window.ninjaVersion.ninja.version; | 302 | this.ninjaVersion = window.ninjaVersion.ninja.version; |
@@ -471,11 +456,6 @@ exports.Ninja = Montage.create(Component, { | |||
471 | // TODO: Remove this when integrating the next montage | 456 | // TODO: Remove this when integrating the next montage |
472 | this.documentList.selectedObjects = [doc]; | 457 | this.documentList.selectedObjects = [doc]; |
473 | 458 | ||
474 | if(doc.currentView === "design") { | ||
475 | // TODO: Bind directly to the model of the document in components instead of this property | ||
476 | this._currentSelectedContainer = null; | ||
477 | this.currentSelectedContainer = doc.model.documentRoot; | ||
478 | } | ||
479 | } | 459 | } |
480 | }, | 460 | }, |
481 | 461 | ||