#59 ✓invalid
Krzysiek Marszalek

What if 'style' is undefined?

Reported by Krzysiek Marszalek | April 28th, 2008 @ 02:58 PM

Hi there!

In my application i have an error because 'style' in Element.Methods.getStyle is empty (line 2253 of prototype.js)

Maybe there should be something like this:

style = (style == 'float' || style == 'cssFloat' || typeof(element.style) == 'undefined') ? 'styleFloat' : style.camelize();

instead of:

style = (style == 'float' || style == 'cssFloat') ? 'styleFloat' : style.camelize();

Krzysiek Marszalek

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket