mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
Added function for later testing.
This commit is contained in:
parent
19a63d1f9d
commit
2e356d3f9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user