hey there
Rich Collins
at 1:13 AM on Thursday May 18th, 2006
|
oops hide has a bug
Rich Collins
at 1:13 AM on Thursday May 18th, 2006
|
hello. javascript supports only single inheritance, although there are ways to mimic multi inheritance
mwarden
at 1:13 AM on Thursday May 18th, 2006
|
are you there?
Rich Collins
at 1:13 AM on Thursday May 18th, 2006
|
ah how can you do that?
Rich Collins
at 1:14 AM on Thursday May 18th, 2006
|
I am mostly interested in mixin interfaces
Rich Collins
at 1:14 AM on Thursday May 18th, 2006
|
similar to ruby
Rich Collins
at 1:14 AM on Thursday May 18th, 2006
|
you do a for...in loop over each object you wish extend, copying each property /method of that object's prototype to new object's prototype
mwarden
at 1:15 AM on Thursday May 18th, 2006
|
ah I see
Rich Collins
at 1:15 AM on Thursday May 18th, 2006
|
let me find you a link
mwarden
at 1:15 AM on Thursday May 18th, 2006
|
I think I have seen this in the prototype lib
Rich Collins
at 1:15 AM on Thursday May 18th, 2006
|
Object.extend
Rich Collins
at 1:15 AM on Thursday May 18th, 2006
|
yes
mwarden
at 1:15 AM on Thursday May 18th, 2006
|
http://dean.edwards.name/weblog/2006/03/base/
mwarden
at 1:16 AM on Thursday May 18th, 2006
|
ok I think that is what I was looking for
Rich Collins
at 1:16 AM on Thursday May 18th, 2006
|
thanks for your help
Rich Collins
at 1:16 AM on Thursday May 18th, 2006
|
np
mwarden
at 1:16 AM on Thursday May 18th, 2006
|