This project is archived and is in readonly mode.

#414 ✓invalid
Daniel Steigerwald

Better object detection for mootools

Reported by Daniel Steigerwald | October 9th, 2008 @ 01:07 PM | in 2.0 (closed)

Hashes are objects too. Valerio don't want to change them to classes. In mootools, there are many checks for objectes (addEvets, .start( ..), for sake of consistency, and just because its easy fix.


(/(object|hash)/).test($type(type))

Comments and changes to this ticket

  • Jan Kassens

    Jan Kassens October 9th, 2008 @ 02:31 PM

    • State changed from “new” to “invalid”
    • Tag set to wontfix

    This would be:

    • slower
    • we would have to use Hash.each instead of for(x in y)
    • not needed in most places

    we could consider adding some more Hash support in a later release, but definitely not everywhere.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Tags

Pages