remove Ox.polyfill.localStorage
This commit is contained in:
parent
4b71d7c03b
commit
f4c34d858c
1 changed files with 1 additions and 7 deletions
|
@ -275,11 +275,6 @@ Ox.polyfill.lastIndexOf = function(value) {
|
|||
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.call([2, 1, 0], function(v, i) { return v == i; })
|
||||
|
@ -384,8 +379,7 @@ Ox.polyfill.trim = function() {
|
|||
for (key in Ox.polyfill) {
|
||||
object = key == 'bind' ? Function.prototype
|
||||
: key == 'isArray' ? Array
|
||||
: key == 'atob' || key == 'btoa'
|
||||
|| key == 'JSON' || key == 'localStorage' ? window
|
||||
: key == 'atob' || key == 'btoa' || key == 'JSON' ? window
|
||||
: key == 'keys' ? Object
|
||||
: key == 'trim' ? String.prototype
|
||||
: Array.prototype;
|
||||
|
|
Loading…
Reference in a new issue