1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-16 10:29:54 +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);
}
}

View File

@ -48,4 +48,4 @@ exports.each = function(source,operator,options) {
return results;
};
})();
})();