Skip to content

Commit

Permalink
remove unused variable in generator
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed May 23, 2017
1 parent 7aaf906 commit e6fac6d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
7 changes: 4 additions & 3 deletions dist/moon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1487,7 +1487,6 @@
for (var i = 0; i < allDirectives.length; i++) {
var directiveInfo = allDirectives[i];
var directiveValue = directiveInfo.value;
var compiledDirectiveValue = "\"\"";

if (directiveValue.length !== 0) {
compileTemplateExpression(directiveValue, dependencies);
Expand Down Expand Up @@ -1915,8 +1914,10 @@
var globalHandlers = this.$events["*"];

// Call all handlers for the event name
for (var i = 0; i < handlers.length; i++) {
handlers[i](meta);
if (handlers !== undefined) {
for (var i = 0; i < handlers.length; i++) {
handlers[i](meta);
}
}

if (globalHandlers !== undefined) {
Expand Down
Loading

0 comments on commit e6fac6d

Please sign in to comment.