Defining/mixing objects and classes

9 views
Skip to first unread message

kstubs

unread,
Nov 1, 2012, 8:36:39 PM11/1/12
to prototype-s...@googlegroups.com
Is it possible to define the initialize method in the object itself?
So something like:

Var obj = {
Initialize: function() {}
}
Var myclass = Class.create({
Initialize: function($super) {
$super();
});

I'd like to define the initialize method in the object.

Karl..

Reply all
Reply to author
Forward
0 new messages