Remove redundant if statement in Element#readAttribute.

This commit is contained in:
Tobie Langel 2009-07-22 01:10:04 +02:00
parent d88aef3a55
commit b57ea83222

View File

@ -596,11 +596,6 @@ Element.Methods = {
readAttribute: function(element, name) {
element = $(element);
if (Prototype.Browser.IE) {
// Circumvent issue in IE that causes crash.
if (name === 'type' &&
element.tagName.toUpperCase() == 'IFRAME') {
return element.getAttribute('type');
}
var t = Element._attributeTranslations.read;
if (t.values[name]) return t.values[name](element, name);
if (t.names[name]) name = t.names[name];