diff options
author | Bastian Buchholz <buchholz.bastian@googlemail.com> | 2015-04-13 10:37:42 +0200 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-04-20 15:06:13 -0400 |
commit | 55ac56aeda786a4d1b677aefd3f5bb134ecb02ad (patch) | |
tree | bd25d4d1740e875e956e9e13731ab5f8fb531725 | |
parent | 892625b3c36eda6bb6ac226d15e0a158ba35cf21 (diff) | |
download | jquery-55ac56aeda786a4d1b677aefd3f5bb134ecb02ad.tar.gz jquery-55ac56aeda786a4d1b677aefd3f5bb134ecb02ad.zip |
Attributes: remove unnecessary element null check
Close gh-2201
-rw-r--r-- | src/attributes/attr.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attributes/attr.js b/src/attributes/attr.js index caf0bc018..282893ea9 100644 --- a/src/attributes/attr.js +++ b/src/attributes/attr.js @@ -27,7 +27,7 @@ jQuery.extend({ nType = elem.nodeType; // don't get/set attributes on text, comment and attribute nodes - if ( !elem || nType === 3 || nType === 8 || nType === 2 ) { + if ( nType === 3 || nType === 8 || nType === 2 ) { return; } |