mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +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);
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
@ -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@:@" } });
|
||||
|
Reference in New Issue
Block a user