dist/vuex-indexeddb-persist.js
// utility function used to bottleneck writes after store mutations
utility function used to bottleneck writes after store mutations
utility function used to bottleneck writes after store mutations
function bottleneck(func, time) {
  var lastArgs = [];
  var pending = false;
  function debounced() {
    lastArgs = arguments;
    if (pending) {
      clearTimeout(pending);
    }
    pending = setTimeout(function () {
      func.apply({}, lastArgs);
    }, time);
  }
  return debounced;
}
function bottleneck ( func , time ) { var lastArgs = [ ] ; var pending = false ; function debounced ( ) { lastArgs = arguments ; if ( pending ) { clearTimeout ( pending ) ; } pending = setTimeout ( function ( ) { func . apply ( { } , lastArgs ) ; } , time ) ; } return debounced ; }
utility function used to bottleneck writes after store mutations
utility function used to bottleneck writes after store mutations