Comparing version 2.1.0 to 2.2.0
@@ -26,6 +26,10 @@ 'use strict'; | ||
* | ||
* @param {string} [extendedClassName] - This is simply added to the prototype as $$CLASS_NAME. Useful for debugging because all derived constructors appear to have the same name ("Constructor") in the debugger. This property is ignored when `extend.extendedClassNames` is set to `false`. | ||
* @param {string} [extendedClassName] - This is simply added to the prototype as $$CLASS_NAME. Useful for debugging because all derived constructors appear to have the same name ("Constructor") in the debugger. This property is ignored unless `extend.debug` is explicitly set to a truthy value. | ||
* | ||
* @param {extendedPrototypeAdditionsObject} [prototypeAdditions] - Object with members to copy to new constructor's prototype. Most members will be copied to the prototype. Some members, however, have special meanings as explained in the {@link extendedPrototypeAdditionsObject|type definition} (and may or may not be copied to the prototype). | ||
* | ||
* @property {boolean} [debug] - See parameter `extendedClassName` _(above)_. | ||
* | ||
* @property {object} Base - A convenient base class from which all other classes can be extended. | ||
* | ||
* @memberOf extend-me | ||
@@ -71,3 +75,3 @@ */ | ||
if (extend.extendedClassNames) { | ||
if (extendedClassName && extend.debug) { | ||
prototype.$$CLASS_NAME = extendedClassName; | ||
@@ -106,3 +110,2 @@ } | ||
} | ||
extend.extendedClassName = true; | ||
@@ -109,0 +112,0 @@ extend.Base = function () {}; |
{ | ||
"name": "extend-me", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"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
10950
134