Am 19.02.2007 um 19:00 schrieb Mislav Marohnić:

> On 2/19/07, Tobie Langel <[EMAIL PROTECTED]> wrote:
> (...)
> So there's another proposition I just though of, introducing the "is"
> namespace:
> Actually, I like your "is" namespace a lot! But - would the name be  
> obtrusive? What if someone defines "is" variable in the global  
> namespace (on the window object), will closures save subsequent  
> calls to real "is" in the framework?


Alternatively, we could add an "is" object to Object, and write:

if( { ... }

or maybe (probably more true to current stuff in Prototype):

if(Object.isArray(blech)) { ... }


if(Object.class(blech) == 'Array') { ... }

You received this message because you are subscribed to the Google Groups 
"Prototype: Core" group.
To post to this group, send email to
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at

Reply via email to