Skip to content

Commit

Permalink
make dom props faster
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Apr 22, 2017
1 parent 1ba2ec5 commit e6dae96
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -649,9 +649,10 @@
}

// Add/Update any DOM Props
if (vnode.props.dom !== undefined) {
for (var domProp in vnode.props.dom) {
var domPropValue = vnode.props.dom[domProp];
var dom = null;
if ((dom = vnode.props.dom) !== undefined) {
for (var domProp in dom) {
var domPropValue = dom[domProp];
if (node[domProp] !== domPropValue) {
node[domProp] = domPropValue;
}
Expand Down
Loading

0 comments on commit e6dae96

Please sign in to comment.