diff options
author | Armen Kesablyan | 2012-05-15 15:02:40 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-05-15 15:02:40 -0700 |
commit | c3452da7c18f73f45e4e6a58918f6459e7915b62 (patch) | |
tree | 3c29d3fddb30fab5f1087f94f19d453d13151b4a /js/tools/bindingTool.js | |
parent | 9e6c0a247bd2f14d92278bcd97fff40277b71667 (diff) | |
download | ninja-c3452da7c18f73f45e4e6a58918f6459e7915b62.tar.gz |
Finished skeleton structure for binding.
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools/bindingTool.js')
-rw-r--r-- | js/tools/bindingTool.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/tools/bindingTool.js b/js/tools/bindingTool.js index 282e3408..f9e81223 100644 --- a/js/tools/bindingTool.js +++ b/js/tools/bindingTool.js | |||
@@ -18,13 +18,14 @@ exports.BindingTool = Montage.create(ModifierToolBase, { | |||
18 | if (doActivate) | 18 | if (doActivate) |
19 | { | 19 | { |
20 | NJevent("enableStageMove"); | 20 | NJevent("enableStageMove"); |
21 | document.body.classList.add("ws-binding"); | 21 | this.application.ninja.workspaceMode = "binding"; |
22 | 22 | ||
23 | } | 23 | } |
24 | else | 24 | else |
25 | { | 25 | { |
26 | NJevent("disableStageMove"); | 26 | NJevent("disableStageMove"); |
27 | document.body.classList.remove("ws-binding"); | 27 | debugger; |
28 | this.application.ninja.workspaceMode = "default"; | ||
28 | } | 29 | } |
29 | } | 30 | } |
30 | }, | 31 | }, |