Builds function which delays the synchronization for given msec and cancels the execution if transformer is triggered again.
time in msec to wait before synchronizing.
Optional
callback which transforms the value.
transformer function.
let a = new Clazz({prop: 2});let b = new Clazz();Binding.for(a, b) .syncToRight("prop", debounceOrCancel(100) ).enable().syncToRightNow();b.prop // is undefined but will be set after 100msec to 2 Copy
let a = new Clazz({prop: 2});let b = new Clazz();Binding.for(a, b) .syncToRight("prop", debounceOrCancel(100) ).enable().syncToRightNow();b.prop // is undefined but will be set after 100msec to 2
Builds function which delays the synchronization for given msec and cancels the execution if transformer is triggered again.