Update jquery.jStorage.js
authorpaladox <thomasmulhall410@yahoo.com>
Sat, 14 Jun 2014 23:41:57 +0000 (23:41 +0000)
committerpaladox <thomasmulhall410@yahoo.com>
Sun, 15 Jun 2014 16:54:09 +0000 (17:54 +0100)
Project site

* http://www.jstorage.info/ and https://github.com/andris9/jStorage

jquery.jStorage.js file

* https://github.com/andris9/jStorage/blob/master/jstorage.js

Author and contact

* Andris Reinman and email andris.reinman@gmail.com

README

* https://github.com/andris9/jStorage/blob/master/README.md

Change-Id: I0ca42e909cc08f8f0b67cec0a7c0aedd0ebf91d7

1  2 
resources/lib/jquery/jquery.jStorage.js

  
          // set next check
          if(nextExpire != Infinity){
--            _ttl_timeout = setTimeout(_handleTTL, nextExpire - curtime);
++            _ttl_timeout = setTimeout(Math.min(_handleTTL, nextExpire - curtime, 0x7FFFFFFF));
          }
  
          // save changes
           * @param {Mixed} value Value to set. This can be any value that is JSON
           *              compatible (Numbers, Strings, Objects etc.).
           * @param {Object} [options] - possible options to use
--         * @param {Number} [options.TTL] - optional TTL value
++         * @param {Number} [options.TTL] - optional TTL value, in milliseconds
           * @return {Mixed} the used value
           */
          set: function(key, value, options){