20,741
edits
(Created page with "# constructor, for making new objects new: func() { # creates a temporary object that inherits from {{{1|myClass}}} var obj = { parents:[ {{{1|myClass}}} ] }; # do...") |
No edit summary |
||
| Line 1: | Line 1: | ||
# constructor, for making new objects | # constructor, for making new objects | ||
new: func() { | new: func() { | ||
# creates a temporary object that inherits from {{{1|myClass}}} | # creates a temporary object that inherits from {{{1|myClass}}} | ||
var obj = { parents:[ {{{1|myClass}}} ] }; | var obj = { parents:[ {{{1|myClass}}} ] }; | ||
# do any other set up here, such as for example | |||
obj.message = "Hello World"; | obj.message = "Hello World"; | ||