Skip to content

Commit

Permalink
Merge pull request n1k0#12 from timruffles/patch-1
Browse files Browse the repository at this point in the history
`breaker` not used, remove
  • Loading branch information
n1k0 committed Dec 19, 2014
2 parents 68d9ba6 + 64f42b7 commit 21e4218
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions backbone-events-standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 21e4218

Please sign in to comment.