Comparing version 0.0.4 to 0.0.5
@@ -1,1 +0,1 @@ | ||
function EventLite(){return this instanceof EventLite?void 0:new EventLite}!function(t){function e(t){for(var e in l)t[e]=l[e];return t}function n(t,e){return o(this,t).push(e),this}function i(t,e){function n(){r.call(i,t,n),e.apply(this,arguments)}var i=this;return o(i,t).push(n),i}function r(t,e){function n(t){return t!==e}var i,u=this;if(t){if(e){if(i=o(u,t,!0)){if(i=i.filter(n),!i.length)return r.call(u,t);u[f][t]=i}}else if(delete u[f][t],!Object.keys(u[f]).length)return r.call(u)}else delete u[f];return u}function u(t,e){function n(t){t.apply(i,r)}var i=this,r=Array.prototype.slice.call(arguments,1),u=o(i,t,!0);return u?(u.forEach(n),!!u.length):!1}function o(t,e,n){if(!n||t[f]){var i=t[f]||(t[f]={});return i[e]||(i[e]=[])}}"undefined"!=typeof module&&(module.exports=t);var f="listeners",l={on:n,once:i,off:r,emit:u};e(t.prototype),t.mixin=e}(EventLite); | ||
function EventLite(){return this instanceof EventLite?void 0:new EventLite}!function(t){function e(t){for(var e in l)t[e]=l[e];return t}function n(t,e){return o(this,t).push(e),this}function i(t,e){function n(){r.call(i,t,n),e.apply(this,arguments)}var i=this;return o(i,t).push(n),i}function r(t,e){function n(t){return t!==e}var i,u=this;if(t){if(e){if(i=o(u,t,!0)){if(i=i.filter(n),!i.length)return r.call(u,t);u[f][t]=i}}else if(i=u[f],i&&(delete i[t],!Object.keys(i).length))return r.call(u)}else delete u[f];return u}function u(t,e){function n(t){t.apply(i,r)}var i=this,r=Array.prototype.slice.call(arguments,1),u=o(i,t,!0);return u?(u.forEach(n),!!u.length):!1}function o(t,e,n){if(!n||t[f]){var i=t[f]||(t[f]={});return i[e]||(i[e]=[])}}"undefined"!=typeof module&&(module.exports=t);var f="listeners",l={on:n,once:i,off:r,emit:u};e(t.prototype),t.mixin=e}(EventLite); |
@@ -112,4 +112,7 @@ /** | ||
} else if (!func) { | ||
delete that[LISTENERS][type]; | ||
if (!Object.keys(that[LISTENERS]).length) return off.call(that); | ||
listners = that[LISTENERS]; | ||
if (listners) { | ||
delete listners[type]; | ||
if (!Object.keys(listners).length) return off.call(that); | ||
} | ||
} else { | ||
@@ -116,0 +119,0 @@ listners = getListeners(that, type, true); |
{ | ||
"name": "event-lite", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Light-weight EventEmitter (less than 1KB when minified)", | ||
@@ -15,5 +15,2 @@ "main": "event-lite.js", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/kawanet/event-lite/issues" | ||
}, | ||
"homepage": "https://github.com/kawanet/event-lite", | ||
@@ -20,0 +17,0 @@ "keywords": [ |
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
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
401
0
17862
1