node-bound
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -82,8 +82,8 @@ | ||
var eventMethod; | ||
if ( typeof emitter === 'function' ) { | ||
if ( emitter && typeof emitter[ method ] === 'function' ) { | ||
eventMethod = ( emitter[ method ] ? emitter[method].bind( emitter ) : noop ); | ||
} else { | ||
eventMethod = emitter; | ||
} else { | ||
eventMethod = ( emitter[ method ] ? emitter[method].bind( emitter ) : noop ); | ||
} | ||
eachEvent( eventMethod, eventObj, context, removeCache ); | ||
} |
{ | ||
"name": "node-bound", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "A simple module to help streamline event binding", | ||
@@ -5,0 +5,0 @@ "main": "index.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
11556