diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-02-13 13:02:54 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-02-14 01:00:41 +0100 |
commit | 024405e4f1a645f640803ad41e24e59a43f27890 (patch) | |
tree | 8690e0f835527cfab246e0cb2cf226db4d67d1af /apps | |
parent | 3c52ac7af3a5e03e8a740f195ca020cf67871c35 (diff) | |
download | nextcloud-server-024405e4f1a645f640803ad41e24e59a43f27890.tar.gz nextcloud-server-024405e4f1a645f640803ad41e24e59a43f27890.zip |
Added function for later testing.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/contacts/js/contacts.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/contacts/js/contacts.js b/apps/contacts/js/contacts.js index 9071038b50a..d61489b63c3 100644 --- a/apps/contacts/js/contacts.js +++ b/apps/contacts/js/contacts.js @@ -3,6 +3,21 @@ function ucwords (str) { return $1.toUpperCase(); }); } +/* TODO: Test this. + * http://snipplr.com/view/45323/remove-duplicate-values-from-array/ +Array.prototype.unique = function unique() { + var i = 0; + while (i < this.length) { + var current = this[i]; + for (k = this.length; k > i; k--) { + if (this[k] === current) { + this.splice(k,1); + } + } i++; + } + return this; +} +*/ String.prototype.strip_tags = function(){ tags = this; |