This project is archived and is in readonly mode.

#515 ✓wontfix
visor

Element.get and undefined parameter

Reported by visor | December 10th, 2008 @ 06:42 AM | in 2.0 (closed)

When undefined parameter passed to Element.get Safari and Chrome (webkit) throws TypeError (undefined value).

To fix this issue i add try/catch to Element.get method: get: function(prop) { try { var property = Element.Properties.get(prop); } catch (e) { return null; } ...

Is it correct?

Comments and changes to this ticket

Create your profile

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

Shared Ticket Bins

People watching this ticket

Pages