summaryrefslogtreecommitdiffstats
path: root/core/js/js.js
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-10 20:51:35 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-10 22:38:28 +0200
commitf03874ac4994ac54816828a7e5d58570080c5bcf (patch)
treec57e9bb47514457005b6902c74ca64a6bc5cd766 /core/js/js.js
parentb54d790a873290e71654e94ac5072e87e6ba5427 (diff)
downloadnextcloud-server-f03874ac4994ac54816828a7e5d58570080c5bcf.tar.gz
nextcloud-server-f03874ac4994ac54816828a7e5d58570080c5bcf.zip
work on user management
Diffstat (limited to 'core/js/js.js')
-rw-r--r--core/js/js.js24
1 files changed, 23 insertions, 1 deletions
diff --git a/core/js/js.js b/core/js/js.js
index f4756d97b25..dc8345545a6 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -275,7 +275,29 @@ $(document).ready(function(){
})
});
-
+if (!Array.prototype.map){
+ Array.prototype.map = function(fun /*, thisp */){
+ "use strict";
+
+ if (this === void 0 || this === null)
+ throw new TypeError();
+
+ var t = Object(this);
+ var len = t.length >>> 0;
+ if (typeof fun !== "function")
+ throw new TypeError();
+
+ var res = new Array(len);
+ var thisp = arguments[1];
+ for (var i = 0; i < len; i++){
+ if (i in t){
+ res[i] = fun.call(thisp, t[i], i, t);
+ }
+ }
+
+ return res;
+ };
+}
/*