Browse Source

coding style

pull/64/head
Tobias Reinwarth 5 years ago
parent
commit
9f44181770
No known key found for this signature in database GPG Key ID: 99C2444C4B04F8B5
  1. 8
      muk_web_utils/static/src/js/underscore.js

8
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,7 +19,7 @@
_.mixin({
memoizeDebounce: function(func, wait, options) {
wait = (typeof wait !== 'undefined') ? wait : 0;
wait = (typeof wait !== 'undefined') ? wait : 0;
options = (typeof options !== 'undefined') ? options : {};
var mem = _.memoize(function() {
return _.debounce(func, wait, options)
@ -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);

Loading…
Cancel
Save