removed pushOnce

This commit is contained in:
Tobias Beer
2015-10-08 14:22:01 +02:00
parent b34e4f628d
commit 26114eb3ff
-9
View File
@@ -84,15 +84,6 @@ $tw.utils.each = function(object,callback) {
}
};
/*
Pushes a value to an array only when not yet contained.
*/
$tw.utils.pushOnce = function(array,value) {
if(array.indexOf(value) == -1) {
array.push(value);
}
}
/*
Helper for making DOM elements
tag: tag name