From: paladox Date: Sat, 14 Jun 2014 23:41:57 +0000 (+0000) Subject: Update jquery.jStorage.js X-Git-Tag: 1.31.0-rc.0~15372^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=fd2909398eb5820365427c714d9b1922d7ec97f6 Update jquery.jStorage.js 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 --- fd2909398eb5820365427c714d9b1922d7ec97f6 diff --cc resources/lib/jquery/jquery.jStorage.js index 324833c92e,324833c92e..902a5cc584 --- a/resources/lib/jquery/jquery.jStorage.js +++ b/resources/lib/jquery/jquery.jStorage.js @@@ -502,7 -502,7 +502,7 @@@ // set next check if(nextExpire != Infinity){ -- _ttl_timeout = setTimeout(_handleTTL, nextExpire - curtime); ++ _ttl_timeout = setTimeout(Math.min(_handleTTL, nextExpire - curtime, 0x7FFFFFFF)); } // save changes @@@ -664,7 -664,7 +664,7 @@@ * @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){