Comparing version 0.0.3 to 0.0.4
@@ -169,4 +169,4 @@ let are_equal = require('deep-equal'); | ||
if (obj instanceof Stream.Readable) res = 'readable_stream'; | ||
if (obj instanceof Stream.Writable) res = 'writable_stream'; | ||
//if (obj instanceof Stream.Readable) res = 'readable_stream'; | ||
//if (obj instanceof Stream.Writable) res = 'writable_stream'; | ||
} | ||
@@ -1809,3 +1809,3 @@ | ||
let target = this; | ||
let c, l; | ||
let c, l, res; | ||
@@ -1817,3 +1817,3 @@ if (sig == '[s]') { | ||
let be = this._bound_events; | ||
let res = []; | ||
res = []; | ||
if (bgh) { | ||
@@ -1848,3 +1848,3 @@ for (c = 0, l = bgh.length; c < l; c++) { | ||
let event_name = a[0]; | ||
let res = []; | ||
res = []; | ||
if (bgh) { | ||
@@ -1866,2 +1866,29 @@ for (c = 0, l = bgh.length; c < l; c++) { | ||
if (sig == '[s,B]') { | ||
let be = this._bound_events; | ||
let bgh = this._bound_general_handler; | ||
let event_name = a[0]; | ||
if (!a[1].target) a[1].target = target; | ||
res = []; | ||
if (bgh) { | ||
for (c = 0, l = bgh.length; c < l; c++) { | ||
res.push(bgh[c].call(target, event_name, a[1])); | ||
} | ||
} | ||
if (be) { | ||
let bei = be[event_name]; | ||
if (tof(bei) === 'array') { | ||
for (c = 0, l = bei.length; c < l; c++) { | ||
res.push(bei[c].call(target, a[1])); | ||
} | ||
} | ||
} | ||
} | ||
if (sig == '[s,o]') { | ||
@@ -1874,3 +1901,3 @@ let be = this._bound_events; | ||
let res = []; | ||
res = []; | ||
if (bgh) { | ||
@@ -1904,3 +1931,3 @@ for (c = 0, l = bgh.length; c < l; c++) { | ||
let res = []; | ||
res = []; | ||
@@ -1929,2 +1956,7 @@ if (bgh) { | ||
} | ||
} else { | ||
// s,? | ||
} | ||
@@ -1980,3 +2012,2 @@ } | ||
} | ||
@@ -1983,0 +2014,0 @@ */ |
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "0.0.3" | ||
"version": "0.0.4" | ||
} |
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
51481
1658