From 26114eb3ff4a3039aad9ca4f203a256b7dd37968 Mon Sep 17 00:00:00 2001 From: Tobias Beer Date: Wed, 11 Feb 2015 19:35:05 +0100 Subject: [PATCH] removed pushOnce --- boot/boot.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/boot/boot.js b/boot/boot.js index 56742c89d..acdfa0327 100644 --- a/boot/boot.js +++ b/boot/boot.js @@ -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