X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=resources%2Flib%2Fjquery%2Fjquery.jStorage.js;fp=resources%2Flib%2Fjquery%2Fjquery.jStorage.js;h=902a5cc58468347b4aa5fbb02080a258a6a42204;hp=324833c92efb7aacd05d36c84d984233477779bc;hb=fd2909398eb5820365427c714d9b1922d7ec97f6;hpb=9850db976c38a1c7d62dad4176e0e27d8d80daef diff --git a/resources/lib/jquery/jquery.jStorage.js b/resources/lib/jquery/jquery.jStorage.js index 324833c92e..902a5cc584 100644 --- a/resources/lib/jquery/jquery.jStorage.js +++ b/resources/lib/jquery/jquery.jStorage.js @@ -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 @@ * @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){