class-builder
Advanced tools
Comparing version 1.0.1 to 1.0.2
12
index.js
@@ -56,5 +56,2 @@ const BUILD = "build"; | ||
// save name before applying base class | ||
var name = constructor.name; | ||
// if extending a class, do so here | ||
@@ -65,8 +62,9 @@ if (_base != undefined) { | ||
Object.defineProperty(constructor, NAME, { | ||
value: name | ||
}); | ||
} | ||
// maintain class name | ||
Object.defineProperty(constructor, NAME, { | ||
value: c.name | ||
}); | ||
// add each property to class prototype | ||
@@ -73,0 +71,0 @@ for (var each in _properties) { |
{ | ||
"name": "class-builder", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Utility for building classes", | ||
@@ -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
5689
210