Tobias Reinwarth
5 years ago
No known key found for this signature in database
GPG Key ID: 99C2444C4B04F8B5
1 changed files with
5 additions and
5 deletions
-
muk_web_utils/static/src/js/underscore.js
|
|
@ -1,5 +1,5 @@ |
|
|
|
/********************************************************************************** |
|
|
|
* |
|
|
|
* |
|
|
|
* Copyright (C) 2018 MuK IT GmbH |
|
|
|
* |
|
|
|
* This program is free software: you can redistribute it and/or modify |
|
|
@ -19,8 +19,8 @@ |
|
|
|
|
|
|
|
_.mixin({ |
|
|
|
memoizeDebounce: function(func, wait, options) { |
|
|
|
wait = (typeof wait !== 'undefined') ? wait : 0; |
|
|
|
options = (typeof options !== 'undefined') ? options : {}; |
|
|
|
wait = (typeof wait !== 'undefined') ? wait : 0; |
|
|
|
options = (typeof options !== 'undefined') ? options : {}; |
|
|
|
var mem = _.memoize(function() { |
|
|
|
return _.debounce(func, wait, options) |
|
|
|
}, options.resolver); |
|
|
@ -32,8 +32,8 @@ _.mixin({ |
|
|
|
|
|
|
|
_.mixin({ |
|
|
|
memoizeThrottle: function(func, wait, options) { |
|
|
|
wait = (typeof wait !== 'undefined') ? wait : 0; |
|
|
|
options = (typeof options !== 'undefined') ? options : {}; |
|
|
|
wait = (typeof wait !== 'undefined') ? wait : 0; |
|
|
|
options = (typeof options !== 'undefined') ? options : {}; |
|
|
|
var mem = _.memoize(function() { |
|
|
|
return _.throttle(func, wait, options) |
|
|
|
}, options.resolver); |
|
|
|