inherits-ex
Advanced tools
Comparing version 1.1.8 to 1.2.0
var newPrototype = require('./newPrototype'); | ||
var setPrototypeOf = require('./setPrototypeOf'); | ||
var defineProperty = require('./defineProperty'); | ||
@@ -9,2 +10,3 @@ | ||
ctor.prototype = newPrototype(superCtor, ctor); | ||
setPrototypeOf(ctor, superCtor);//additional static inheritance | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/snowyu/inherits-ex.js", | ||
"version": "1.1.8", | ||
"version": "1.2.0", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "Riceball LEE", |
@@ -22,2 +22,3 @@ ### Inherits-Ex [](https://npmjs.org/package/inherits-ex) | ||
+ coffee-script supports | ||
+ static inheritance | ||
+ multi-inheritances(inheritance chain) supports | ||
@@ -94,2 +95,3 @@ + inherits at anytime. | ||
class Root | ||
@static: 1 | ||
m: -> log('root') | ||
@@ -115,3 +117,3 @@ | ||
assert.ok isInheritedFrom(MyClass, B) | ||
assert.equal MyClass.static, 1 | ||
``` | ||
@@ -118,0 +120,0 @@ |
var newPrototype = require('./newPrototype'); | ||
var setPrototypeOf = require('./setPrototypeOf'); | ||
var defineProperty = require('./defineProperty'); | ||
@@ -9,2 +10,3 @@ | ||
ctor.prototype = newPrototype(superCtor, ctor); | ||
setPrototypeOf(ctor, superCtor);//additional static inheritance | ||
}; |
Sorry, the diff of this file is not supported yet
81965
76
1169
260