mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
updateTwoWayBinding removed
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user