because if you are testing a Date from another document its  
constructor won't match your document's Date constructor.

On 1 Feb, 2008, at 4:20 PM, kangax wrote:

>
> Why not simply:
>
> Object.isDate = function(o) {
>  return !!(o && o.constructor == Date);
> }
>
> - kangax
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to prototype-core@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to