1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

adopted style recommendations

This commit is contained in:
Tobias Beer 2015-01-29 00:45:58 +01:00
parent 71968e0973
commit b34e4f628d
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ $tw.utils.each = function(object,callback) {
Pushes a value to an array only when not yet contained.
*/
$tw.utils.pushOnce = function(array,value) {
if(0 > array.indexOf(value)){
if(array.indexOf(value) == -1) {
array.push(value);
}
}