Skip to content

Commit

Permalink
Update knockout-kendo-core.js
Browse files Browse the repository at this point in the history
Why should we always invoke async method calls if not wanted?
With this approach, we can decide if the widget should use async events or not.
e.g.
kendoGrid: { throttle: -1 }
If not specified, by default it will execute async calls.

Hope this helps.
  • Loading branch information
Nadynho authored and rniemeyer committed May 23, 2014
1 parent b8f67d0 commit 9d1f026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/knockout-kendo-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ ko.kendo.BindingFactory = function() {
}
},
disposeWhenNodeIsRemoved: element
}).extend({ throttle: 1 });
}).extend({ throttle: options.throttle ? options.throttle : 1 });

//if option is not observable, then dispose up front after executing the logic once
if (!ko.isObservable(options[prop])) {
Expand Down Expand Up @@ -287,4 +287,4 @@ var extendAndRedraw = function(prop) {
this.value(0.001 + this.value());
}
};
};
};

0 comments on commit 9d1f026

Please sign in to comment.