From 9d475e601297367ccb9cae1229945f36ef1a9b6b Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 16 Jun 2012 20:46:14 +0000 Subject: [PATCH] remove warning when returning false from Ox.loop and Ox.forEach --- source/Ox/js/Collection.js | 4 ++-- source/Ox/js/Core.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/Ox/js/Collection.js b/source/Ox/js/Collection.js index 2c49c26c..10ba05f7 100644 --- a/source/Ox/js/Collection.js +++ b/source/Ox/js/Collection.js @@ -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; } } diff --git a/source/Ox/js/Core.js b/source/Ox/js/Core.js index 6581ef3c..a276615b 100644 --- a/source/Ox/js/Core.js +++ b/source/Ox/js/Core.js @@ -278,7 +278,7 @@ Ox.loop = function() { for (i = start; step > 0 ? i < stop : i > stop; i += step) { // iterator(i); if (iterator(i) === false) { - console.warn('Returning false in Ox.loop is deprecated.'); + // console.warn('Returning false in Ox.loop is deprecated.'); break; } }