mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-08 05:46:05 +00:00
adopted style recommendations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user