remove Ox.polyfill.localStorage

This commit is contained in:
rolux 2012-07-05 19:47:33 +02:00
parent 4b71d7c03b
commit f4c34d858c

View file

@ -275,11 +275,6 @@ Ox.polyfill.lastIndexOf = function(value) {
return ret; return ret;
}; };
/*@
Ox.polyfill.localStorage <o> Empty object, to be used instead of localStorage
*/
Ox.polyfill.localStorage = {};
/*@ /*@
Ox.polyfill.map <f> see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map Ox.polyfill.map <f> see https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/map
> Ox.polyfill.map.call([2, 1, 0], function(v, i) { return v == i; }) > Ox.polyfill.map.call([2, 1, 0], function(v, i) { return v == i; })
@ -384,8 +379,7 @@ Ox.polyfill.trim = function() {
for (key in Ox.polyfill) { for (key in Ox.polyfill) {
object = key == 'bind' ? Function.prototype object = key == 'bind' ? Function.prototype
: key == 'isArray' ? Array : key == 'isArray' ? Array
: key == 'atob' || key == 'btoa' : key == 'atob' || key == 'btoa' || key == 'JSON' ? window
|| key == 'JSON' || key == 'localStorage' ? window
: key == 'keys' ? Object : key == 'keys' ? Object
: key == 'trim' ? String.prototype : key == 'trim' ? String.prototype
: Array.prototype; : Array.prototype;