class-utils
Advanced tools
Comparing version 0.1.2 to 0.2.0
10
index.js
@@ -264,3 +264,4 @@ 'use strict'; | ||
var keys = Object.keys(provider); | ||
var len = props.length, key; | ||
var len = props.length, | ||
key; | ||
omit = cu.arrayify(omit); | ||
@@ -338,3 +339,3 @@ | ||
return function (Ctor, proto) { | ||
return function(Ctor, proto) { | ||
if (typeof Ctor !== 'function') { | ||
@@ -357,4 +358,9 @@ throw new TypeError('expected Ctor to be a function.'); | ||
} | ||
Ctor.prototype.mixin = function(key, value) { | ||
Ctor.prototype[key] = value; | ||
}; | ||
Ctor.extend = cu.extend(Ctor); | ||
}; | ||
}; |
{ | ||
"name": "class-utils", | ||
"description": "Utils for working with JavaScript classes and prototype methods.", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/jonschlinkert/class-utils", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -204,3 +204,3 @@ # class-utils [![NPM version](https://badge.fury.io/js/class-utils.svg)](http://badge.fury.io/js/class-utils) | ||
### [.inherit](index.js#L289) | ||
### [.inherit](index.js#L290) | ||
@@ -217,3 +217,3 @@ Inherit the static properties, prototype properties, and descriptors | ||
### [.extend](index.js#L332) | ||
### [.extend](index.js#L333) | ||
@@ -274,2 +274,2 @@ Returns a function for extending the static properties, prototype properties, and descriptors from the `Parent` constructor onto `Child` constructors. | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on September 19, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on October 01, 2015._ |
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
15796
319
273