adopted style recommendations

This commit is contained in:
Tobias Beer
2015-10-08 14:21:57 +02:00
parent 71968e0973
commit b34e4f628d
2 changed files with 2 additions and 2 deletions
+1 -1
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);
}
}
+1 -1
View File
@@ -48,4 +48,4 @@ exports.each = function(source,operator,options) {
return results;
};
})();
})();