diff options
author | Valerio Virgillito | 2012-05-30 11:30:17 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-30 11:30:17 -0700 |
commit | 169df50391a35e9c7865033dd089a37324bcfa47 (patch) | |
tree | 03fb623d94053733f5e80eb0a91587f5781002e6 /js | |
parent | ecfdccc0a60b20f0ec7ab7ac91e8ea57dbc3aee3 (diff) | |
download | ninja-169df50391a35e9c7865033dd089a37324bcfa47.tar.gz |
remove current document binding from the stage deps
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js')
-rwxr-xr-x | js/stage/stage-deps.js | 30 | ||||
-rwxr-xr-x | js/stage/stage.reel/stage.html | 3 |
2 files changed, 0 insertions, 33 deletions
diff --git a/js/stage/stage-deps.js b/js/stage/stage-deps.js index 709c0201..762c2529 100755 --- a/js/stage/stage-deps.js +++ b/js/stage/stage-deps.js | |||
@@ -15,36 +15,6 @@ var Montage = require("montage/core/core").Montage, | |||
15 | 15 | ||
16 | exports.StageDeps = Montage.create(Component, { | 16 | exports.StageDeps = Montage.create(Component, { |
17 | 17 | ||
18 | _currentDocument: { | ||
19 | value : null, | ||
20 | enumerable : false | ||
21 | }, | ||
22 | |||
23 | currentDocument : { | ||
24 | get : function() { | ||
25 | return this._currentDocument; | ||
26 | }, | ||
27 | set : function(value) { | ||
28 | if (value === this._currentDocument) { | ||
29 | return; | ||
30 | } | ||
31 | |||
32 | this._currentDocument = value; | ||
33 | |||
34 | if(!value) { | ||
35 | |||
36 | } else if(this._currentDocument.currentView === "design") { | ||
37 | workingPlane = [0,0,1,0]; | ||
38 | |||
39 | snapManager._isCacheInvalid = true; | ||
40 | snapManager.setupDragPlaneFromPlane (workingPlane); | ||
41 | |||
42 | drawUtils.initializeFromDocument(); | ||
43 | } | ||
44 | |||
45 | } | ||
46 | }, | ||
47 | |||
48 | viewUtils: { | 18 | viewUtils: { |
49 | value: viewUtils | 19 | value: viewUtils |
50 | }, | 20 | }, |
diff --git a/js/stage/stage.reel/stage.html b/js/stage/stage.reel/stage.html index 1b5cec17..45667e06 100755 --- a/js/stage/stage.reel/stage.html +++ b/js/stage/stage.reel/stage.html | |||
@@ -22,9 +22,6 @@ | |||
22 | "prototype": "js/stage/stage-deps", | 22 | "prototype": "js/stage/stage-deps", |
23 | "properties": { | 23 | "properties": { |
24 | "stage": {"@": "owner"} | 24 | "stage": {"@": "owner"} |
25 | }, | ||
26 | "bindings": { | ||
27 | "currentDocument": {"<-": "@owner.currentDocument"} | ||
28 | } | 25 | } |
29 | }, | 26 | }, |
30 | 27 | ||