Skip to content

Commit

Permalink
Fix isElement detection in Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
bumbu committed Feb 13, 2015
1 parent 540dc8c commit ad0b70d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ module.exports = {
*/
, isElement: function(o){
return (
typeof HTMLElement === 'object' ? (o instanceof HTMLElement || o instanceof SVGElement || o instanceof SVGSVGElement) : //DOM2
o && typeof o === 'object' && o !== null && o.nodeType === 1 && typeof o.nodeName === 'string'
o instanceof HTMLElement || o instanceof SVGElement || o instanceof SVGSVGElement || //DOM2
(o && typeof o === 'object' && o !== null && o.nodeType === 1 && typeof o.nodeName === 'string')
);
}

Expand Down

0 comments on commit ad0b70d

Please sign in to comment.