Hi.

I can't find a way to determine the type of object being supplied to a function.

I can check if it is a string ...

if (Object.isString(param)) {
 var tmpl = new Template(param);
} else if (Object.type(param) = 'Template') {
 var tmpl = param;
}

sort of thing.

-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

-- 
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