backbone-events-standalone
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -24,3 +24,2 @@ /** | ||
var root = this, | ||
breaker = {}, | ||
nativeForEach = Array.prototype.forEach, | ||
@@ -63,3 +62,3 @@ hasOwnProperty = Object.prototype.hasOwnProperty, | ||
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); | ||
} | ||
@@ -69,3 +68,3 @@ } else { | ||
if (this.has(obj, key)) { | ||
if (iterator.call(context, obj[key], key, obj) === breaker) return; | ||
iterator.call(context, obj[key], key, obj); | ||
} | ||
@@ -268,7 +267,3 @@ } | ||
// Export Events as BackboneEvents depending on current context | ||
if (typeof define === "function") { | ||
define(function() { | ||
return Events; | ||
}); | ||
} else if (typeof exports !== 'undefined') { | ||
if (typeof exports !== 'undefined') { | ||
if (typeof module !== 'undefined' && module.exports) { | ||
@@ -278,2 +273,6 @@ exports = module.exports = Events; | ||
exports.BackboneEvents = Events; | ||
}else if (typeof define === "function") { | ||
define(function() { | ||
return Events; | ||
}); | ||
} else { | ||
@@ -280,0 +279,0 @@ root.BackboneEvents = Events; |
{ | ||
"name": "backbone-events-standalone", | ||
"description": "Standalone version of Backbone.Events", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"author": "Nicolas Perriault <nicolas@perriault.net>", | ||
@@ -6,0 +6,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32320
704