Debounce autobake in the web app.
Added debounce with guidance from the underscore.js implementation: https://github.com/jashkenas/underscore/blob/e944e0275abb3e1f366417ba8facb5754a7ad273/underscore.js#L880
This commit is contained in:
@@ -36,6 +36,8 @@ var App = function(categories, operations, defaultFavourites, defaultOptions) {
|
||||
this.ingId = 0;
|
||||
|
||||
window.chef = this.chef;
|
||||
|
||||
this.autoBake = Utils.debounce(this.autoBake, 300);
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user