mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-24 22:33:16 +00:00
removed pushOnce
This commit is contained in:
parent
b34e4f628d
commit
26114eb3ff
|
@ -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
|
Helper for making DOM elements
|
||||||
tag: tag name
|
tag: tag name
|
||||||
|
|
Loading…
Reference in New Issue
Block a user