Skip to content

Commit

Permalink
fix ie bug when an SVGElement is provided as selector
Browse files Browse the repository at this point in the history
  • Loading branch information
bumbu committed May 9, 2014
1 parent 802e844 commit 85651cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/svg-pan-zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ module.exports = {
*/
, isElement: function(o){
return (
typeof HTMLElement === "object" ? o instanceof HTMLElement : //DOM2
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"
);
}
Expand Down
Loading

0 comments on commit 85651cc

Please sign in to comment.