File tree 2 files changed +1
-3
lines changed 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ export class Switch extends view.View {
13
13
var that = this ;
14
14
this . _android . setOnCheckedChangeListener ( new android . widget . CompoundButton . OnCheckedChangeListener ( {
15
15
onCheckedChanged : function ( sender , isChecked ) {
16
- that . updateTwoWayBinding ( Switch . checkedProperty , sender . isChecked ( ) ) ;
17
- that . setProperty ( Switch . checkedProperty , sender . isChecked ( ) ) ;
16
+ that . setProperty ( Switch . checkedProperty , isChecked ) ;
18
17
}
19
18
} ) ) ;
20
19
}
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ export class Switch extends view.View {
14
14
var that = this ;
15
15
var target = Foundation . NSObject . extends ( {
16
16
valueChange : ( sender : UIKit . UISwitch ) => {
17
- that . updateTwoWayBinding ( Switch . checkedProperty , sender . on ) ;
18
17
that . setProperty ( Switch . checkedProperty , sender . on ) ;
19
18
}
20
19
} , { exposedMethods : { "valueChange" : "v@:@" } } ) ;
You can’t perform that action at this time.
0 commit comments