From 7b5b65fc9183026633d97c310cbe6500082be8dd Mon Sep 17 00:00:00 2001 From: Eric Guzman Date: Mon, 11 Jun 2012 07:17:11 -0700 Subject: Binding Item - Direction Toggle button calls controller --- js/panels/binding/binding-item.reel/binding-item.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'js/panels/binding') 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, { handleDirectionToggleButtonAction : { value: function(e) { + var controller = this.application.ninja.objectsController; + this.oneway = !this.oneway; - this.application.ninja.objectsController.editBinding(this.bindingArgs, { + controller.editBinding(this.bindingArgs, { oneway: !this.bindingArgs.oneway }); - this.application.ninja.objectsController. + controller.currentItem = controller.currentItem; } }, -- cgit v1.2.3