Remove redundant if statement in Element#readAttribute.
This commit is contained in:
parent
d88aef3a55
commit
b57ea83222
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue