Comparing version 1.0.1 to 1.0.2
11
index.js
'use strict'; | ||
/** @namespace extend **/ | ||
/** @namespace extend-me **/ | ||
@@ -31,3 +31,3 @@ /** @summary Extends an existing constructor into a new constructor. | ||
* | ||
* @memberOf extend | ||
* @memberOf extend-me | ||
*/ | ||
@@ -50,2 +50,3 @@ function extend(prototypeAdditions) { | ||
for (var key in prototypeAdditions) { | ||
var value = prototypeAdditions[key]; | ||
switch (key) { | ||
@@ -59,8 +60,7 @@ case 'initializeOwn': | ||
case 'aliases': | ||
for (var alias in prototypeAdditions.aliases) { | ||
makeAlias(prototypeAdditions.aliases[alias]); | ||
for (var alias in value) { | ||
makeAlias(value[alias], alias); | ||
} | ||
break; | ||
default: | ||
var value = prototypeAdditions[key]; | ||
if (typeof value === 'string' && value[0] === '#') { | ||
@@ -101,2 +101,3 @@ makeAlias(value, key.substr(1)); | ||
* @private | ||
* @memberOf extend-me | ||
*/ | ||
@@ -103,0 +104,0 @@ function initializePrototypeChain() { |
{ | ||
"name": "extend-me", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "description": "Yet another Backbone-like class extender", |
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
107
8954