Skip to content

Commit

Permalink
var declaration nearby use
Browse files Browse the repository at this point in the history
  • Loading branch information
errorrik committed Nov 7, 2018
1 parent e7b6c64 commit c181861
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/view/slot-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ function SlotNode(aNode, owner, scope, parent, reverseWalker) {

realANode.children = givenChildren || aNode.children.slice(0);

var me = this;

// calc scoped slot vars
realANode.vars = aNode.vars;
realANode.directives = aNode.directives;
Expand Down Expand Up @@ -110,6 +108,7 @@ function SlotNode(aNode, owner, scope, parent, reverseWalker) {
this.sel = document.createComment(this.id);
insertBefore(this.sel, reverseWalker.target, reverseWalker.current);

var me = this;
each(this.aNode.children, function (aNodeChild) {
me.children.push(createReverseNode(aNodeChild, reverseWalker, me));
});
Expand Down

0 comments on commit c181861

Please sign in to comment.