From 64f42b7f457e9cda63cbc599848200ba842a6039 Mon Sep 17 00:00:00 2001 From: Tim Ruffles Date: Fri, 19 Dec 2014 10:57:31 +0000 Subject: [PATCH] `breaker` not used, remove since `breaker` is not used anywhere inside the module, and isn't internally visible, you may as well save bytes/cycles! --- backbone-events-standalone.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backbone-events-standalone.js b/backbone-events-standalone.js index 36b1172..fb1c513 100644 --- a/backbone-events-standalone.js +++ b/backbone-events-standalone.js @@ -21,7 +21,6 @@ /* global exports:true, define, module */ (function() { var root = this, - breaker = {}, nativeForEach = Array.prototype.forEach, hasOwnProperty = Object.prototype.hasOwnProperty, slice = Array.prototype.slice, @@ -59,12 +58,12 @@ obj.forEach(iterator, context); } else if (obj.length === +obj.length) { for (var i = 0, l = obj.length; i < l; i++) { - if (iterator.call(context, obj[i], i, obj) === breaker) return; + iterator.call(context, obj[i], i, obj); } } else { for (var key in obj) { if (this.has(obj, key)) { - if (iterator.call(context, obj[key], key, obj) === breaker) return; + iterator.call(context, obj[key], key, obj); } } }