@voliware/eventsystem
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -217,7 +217,8 @@ /** | ||
*/ | ||
extend(object){ | ||
object.on = this.on.bind(this); | ||
object.one = this.one.bind(this); | ||
object.off = this.off.bind(this); | ||
object.emit = this.emit.bind(this); | ||
static extend(object){ | ||
const es = new EventSystem(); | ||
object.on = es.on.bind(es); | ||
object.one = es.one.bind(es); | ||
object.off = es.off.bind(es); | ||
object.emit = es.emit.bind(es); | ||
} | ||
@@ -224,0 +225,0 @@ } |
{ | ||
"name": "@voliware/eventsystem", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "An event system with on/off/emit functions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -102,3 +102,3 @@ const Assert = require('assert'); | ||
let o = {}; | ||
es.extend(o); | ||
EventSystem.extend(o); | ||
@@ -105,0 +105,0 @@ o.on('on', () => { |
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
13951
319