This shows you the differences between two versions of the page.
|
oojavascript [2010/05/03 15:57] admin ChildClass.prototype.constructor = ChildClass; not necessary |
oojavascript [2010/05/03 17:11] (current) admin old revision restored |
||
|---|---|---|---|
| Line 60: | Line 60: | ||
| */ | */ | ||
| ChildClass.prototype = new MyClass(); | ChildClass.prototype = new MyClass(); | ||
| + | ChildClass.prototype.constructor = ChildClass; | ||
| function ChildClass(childInitValue) { | function ChildClass(childInitValue) { | ||