diff options
author | Nivesh Rajbhandari | 2012-05-29 14:55:19 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-05-29 14:55:19 -0700 |
commit | 961830a1ab076db70577df735f43cae5e8559e83 (patch) | |
tree | 9247b68ad2707c0632a3b3fa52d8d82c8d171d6d /js/stage/stage-deps.js | |
parent | f3a019a6aad13c9c4bd84546c91a0b16ad04c0cd (diff) | |
download | ninja-961830a1ab076db70577df735f43cae5e8559e83.tar.gz |
Moving layout and stageDeps' handleOpenDocument into stage.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage/stage-deps.js')
-rwxr-xr-x | js/stage/stage-deps.js | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/js/stage/stage-deps.js b/js/stage/stage-deps.js index 2469ba79..b45315b7 100755 --- a/js/stage/stage-deps.js +++ b/js/stage/stage-deps.js | |||
@@ -55,28 +55,6 @@ exports.StageDeps = Montage.create(Component, { | |||
55 | drawUtils.snapManager = snapManager; | 55 | drawUtils.snapManager = snapManager; |
56 | drawUtils.ElementPlanes = ElementPlanes; | 56 | drawUtils.ElementPlanes = ElementPlanes; |
57 | } | 57 | } |
58 | }, | ||
59 | |||
60 | handleOpenDocument: { | ||
61 | value: function() { | ||
62 | |||
63 | workingPlane = [0,0,1,0]; | ||
64 | |||
65 | snapManager._isCacheInvalid = true; | ||
66 | snapManager.setupDragPlaneFromPlane (workingPlane); | ||
67 | |||
68 | drawUtils.initializeFromDocument(); | ||
69 | } | ||
70 | }, | ||
71 | |||
72 | handleSwitchDocument: { | ||
73 | value: function(){ | ||
74 | workingPlane = [0,0,1,0]; | ||
75 | |||
76 | snapManager._isCacheInvalid = true; | ||
77 | snapManager.setupDragPlaneFromPlane (workingPlane); | ||
78 | |||
79 | drawUtils.initializeFromDocument(); | ||
80 | } | ||
81 | } | 58 | } |
59 | |||
82 | }); \ No newline at end of file | 60 | }); \ No newline at end of file |