From 075da3091cda170bd8cd5ce47bad1c5b14760232 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 2 Sep 2014 21:44:02 +0400 Subject: [PATCH] Attr: Use typeof check for getAttribute method Ref 29838b6cab6f2e508f3e9692f32918c72b1a504b --- src/attributes/attr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/attributes/attr.js b/src/attributes/attr.js index b627fe888..caf0bc018 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -32,7 +32,7 @@ jQuery.extend({ } // Fallback to prop when attributes are not supported - if ( !elem.getAttribute ) { + if ( typeof elem.getAttribute === "undefined" ) { return jQuery.prop( elem, name, value ); } -- 2.39.5