1
0
Fork 0
forked from 0x2620/oxjs

remove warning when returning false from Ox.loop and Ox.forEach

This commit is contained in:
rlx 2012-06-16 20:46:14 +00:00
commit 9d475e6012
2 changed files with 3 additions and 3 deletions

View file

@ -181,7 +181,7 @@ Ox.forEach = function(collection, iterator, that) {
if (Ox.hasOwn(collection, key)) {
// iterator.call(that, collection[key], key, collection);
if (iterator.call(that, collection[key], key, collection) === false) {
console.warn('Returning false in Ox.forEach is deprecated.');
// console.warn('Returning false in Ox.forEach is deprecated.');
break;
}
}
@ -192,7 +192,7 @@ Ox.forEach = function(collection, iterator, that) {
if (i in collection) {
// iterator.call(that, collection[i], i, collection);
if (iterator.call(that, collection[i], i, collection) === false) {
console.warn('Returning false in Ox.forEach is deprecated.');
// console.warn('Returning false in Ox.forEach is deprecated.');
break;
}
}