Is there a way to check if an instance is a specified class?  For
example,

var Foo = Class.create({});
var bar = new Foo();
if (Object.isType(Foo, bar)) {
  //bar is an instance of Foo
} else {
  // bar is NOT an instance of Foo
}

I know that in this case bar would always be an instance of Foo, but
generally is there a way to check?

-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.

Reply via email to