File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/core/ui/core/bindable Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -635,8 +635,9 @@ export class Binding {
635
635
636
636
try {
637
637
if ( isEventOrGesture ( options . property , < any > optionsInstance ) && types . isFunction ( value ) ) {
638
- // calling off method with null as handler will remove all handlers for options.property event
639
- optionsInstance . off ( options . property , null , optionsInstance . bindingContext ) ;
638
+ // Calling Observable.prototype.off() with just the event name will
639
+ // remove all handlers under that event name.
640
+ optionsInstance . off ( options . property ) ;
640
641
optionsInstance . on ( options . property , value , optionsInstance . bindingContext ) ;
641
642
} else if ( optionsInstance instanceof Observable ) {
642
643
optionsInstance . set ( options . property , value ) ;
You can’t perform that action at this time.
0 commit comments