aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/stage/stage-deps.js30
-rwxr-xr-xjs/stage/stage.reel/stage.html3
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
16exports.StageDeps = Montage.create(Component, { 16exports.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