Comparing version 0.1.2 to 0.1.3
@@ -67,3 +67,4 @@ | ||
if ( getRootModulePath() && path.indexOf( getRootModulePath() ) === 0 ){ | ||
return path.substr( getRootModulePath().length ).replace( /\//g, "." ); | ||
path = path.substr( getRootModulePath().length ); | ||
return path.indexOf( "node_modules" === -1 ) ? path.replace( /\//g, "." ) : path.substr( path.lastIndexOf( "node_modules" ) + 13 ).replace( /\//g, "." ); | ||
} | ||
@@ -154,3 +155,3 @@ | ||
// add eventlisteners | ||
if ( options && options.on && instance.$events ) instance.on( options.on ); | ||
if ( options && options.on && typeof instance.on === "function" ) instance.on( options.on ); | ||
@@ -157,0 +158,0 @@ // parent |
{ | ||
"name": "ee-class" | ||
, "description": "js class implementation" | ||
, "version": "0.1.2" | ||
, "version": "0.1.3" | ||
, "homepage": "https://github.com/eventEmitter/ee-class" | ||
@@ -6,0 +6,0 @@ , "author": "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
@@ -31,2 +31,8 @@ # ee-class | ||
var fabian = new Boy( { name: "Fabian" } ); | ||
fabian.sayHello(); // Hi my name is Fabian and i'm 12 years old. | ||
fabian.sayHello(); // Hi my name is Fabian and i'm 12 years old. | ||
# Version History | ||
- 0.1.0: initial version | ||
- 0.1.3: fixed integration with eventemitter objects |
Sorry, the diff of this file is not supported yet
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
7622
145
37