diff --git a/ui/switch/switch.android.ts b/ui/switch/switch.android.ts index 087337798..8f5d2165c 100644 --- a/ui/switch/switch.android.ts +++ b/ui/switch/switch.android.ts @@ -13,8 +13,7 @@ export class Switch extends view.View { var that = this; this._android.setOnCheckedChangeListener(new android.widget.CompoundButton.OnCheckedChangeListener({ onCheckedChanged: function (sender, isChecked) { - that.updateTwoWayBinding(Switch.checkedProperty, sender.isChecked()); - that.setProperty(Switch.checkedProperty, sender.isChecked()); + that.setProperty(Switch.checkedProperty, isChecked); } })); } diff --git a/ui/switch/switch.ios.ts b/ui/switch/switch.ios.ts index 3cd218bd4..f2177da23 100644 --- a/ui/switch/switch.ios.ts +++ b/ui/switch/switch.ios.ts @@ -14,7 +14,6 @@ export class Switch extends view.View { var that = this; var target = Foundation.NSObject.extends({ valueChange: (sender: UIKit.UISwitch) => { - that.updateTwoWayBinding(Switch.checkedProperty, sender.on); that.setProperty(Switch.checkedProperty, sender.on); } }, { exposedMethods: { "valueChange": "v@:@" } });