Comparing version 1.1.6 to 1.1.7
@@ -8,4 +8,3 @@ (this.window||module)[(this.window ? 'Events' : 'exports')] = function (target){ | ||
target.on = function(type, func, ctx){ | ||
events[type] = events[type] || [] | ||
events[type].push({f:func, c:ctx}) | ||
(events[type] = events[type] || []).push({f:func, c:ctx}) | ||
} | ||
@@ -12,0 +11,0 @@ /** |
@@ -1,1 +0,1 @@ | ||
(this.window||module)[this.window?"Events":"exports"]=function(n){var t={};n=n||this,n.on=function(n,f,i){t[n]=t[n]||[],t[n].push({f:f,c:i})},n.off=function(n,f){n||(t={});for(var i=t[n]||[],o=i.length=f?i.length:0;o-->0;)f==i[o].f&&i.splice(o,1)},n.emit=function(){for(var n,f=Array.apply([],arguments),i=t[f.shift()]||[],o=0;n=i[o++];)n.f.apply(n.c,f)}}; | ||
(this.window||module)[this.window?"Events":"exports"]=function(n){var t={};n=n||this,n.on=function(n,f,i){(t[n]=t[n]||[]).push({f:f,c:i})},n.off=function(n,f){n||(t={});for(var i=t[n]||[],o=i.length=f?i.length:0;o-->0;)f==i[o].f&&i.splice(o,1)},n.emit=function(){for(var n,f=Array.apply([],arguments),i=t[f.shift()]||[],o=0;n=i[o++];)n.f.apply(n.c,f)}}; |
{ | ||
"name": "minivents", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Tiny eventing for javascript", | ||
@@ -5,0 +5,0 @@ "main": "minivents.js", |
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
9537
160