Skip to content

Commit

Permalink
⚡ faster way to check for svg
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 2, 2017
1 parent 608a4b6 commit 159eee8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@
var vnodeProps = vnode.props.attrs;

// If node is svg, update with SVG namespace
var isSVG = typeof node.ownerSVGElement !== 'undefined';
var isSVG = vnode.meta.isSVG;

// Diff VNode Props with Node Props
if (vnodeProps) {
Expand Down
Loading

0 comments on commit 159eee8

Please sign in to comment.