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:
toby
2017-04-23 13:41:28 -04:00
parent 21c0fed833
commit 50784f2600
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -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);
};