mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
adopted style recommendations
This commit is contained in:
parent
71968e0973
commit
b34e4f628d
@ -88,7 +88,7 @@ $tw.utils.each = function(object,callback) {
|
|||||||
Pushes a value to an array only when not yet contained.
|
Pushes a value to an array only when not yet contained.
|
||||||
*/
|
*/
|
||||||
$tw.utils.pushOnce = function(array,value) {
|
$tw.utils.pushOnce = function(array,value) {
|
||||||
if(0 > array.indexOf(value)){
|
if(array.indexOf(value) == -1) {
|
||||||
array.push(value);
|
array.push(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -48,4 +48,4 @@ exports.each = function(source,operator,options) {
|
|||||||
return results;
|
return results;
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user