This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var d1, d2, d3, d4 | |
function Base() {this.foo = 'foo'} | |
Base.prototype.bar = 'bar' | |
// Superconstructor | |
function D1() {Base.call(this)} | |
// Set prototype to instance | |
function D2() { } | |
D2.prototype = new Base() | |
// Set prototype to Base.prototype |
NewerOlder