diff options
author | Eric Guzman | 2012-06-11 07:17:11 -0700 |
---|---|---|
committer | Eric Guzman | 2012-06-11 07:17:11 -0700 |
commit | 7b5b65fc9183026633d97c310cbe6500082be8dd (patch) | |
tree | f32509f7780e23d616d3c487fc72cbb2f8b0afad /js | |
parent | 85c8a01d19d4c4931d5395a9e8ccc14fcfc48041 (diff) | |
download | ninja-7b5b65fc9183026633d97c310cbe6500082be8dd.tar.gz |
Binding Item - Direction Toggle button calls controller
Diffstat (limited to 'js')
-rw-r--r-- | js/panels/binding/binding-item.reel/binding-item.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/js/panels/binding/binding-item.reel/binding-item.js b/js/panels/binding/binding-item.reel/binding-item.js index 2dad2aaf..a1017020 100644 --- a/js/panels/binding/binding-item.reel/binding-item.js +++ b/js/panels/binding/binding-item.reel/binding-item.js | |||
@@ -88,11 +88,13 @@ exports.BindingItem = Montage.create(Component, { | |||
88 | 88 | ||
89 | handleDirectionToggleButtonAction : { | 89 | handleDirectionToggleButtonAction : { |
90 | value: function(e) { | 90 | value: function(e) { |
91 | var controller = this.application.ninja.objectsController; | ||
92 | |||
91 | this.oneway = !this.oneway; | 93 | this.oneway = !this.oneway; |
92 | this.application.ninja.objectsController.editBinding(this.bindingArgs, { | 94 | controller.editBinding(this.bindingArgs, { |
93 | oneway: !this.bindingArgs.oneway | 95 | oneway: !this.bindingArgs.oneway |
94 | }); | 96 | }); |
95 | this.application.ninja.objectsController. | 97 | controller.currentItem = controller.currentItem; |
96 | } | 98 | } |
97 | }, | 99 | }, |
98 | 100 | ||