Skip to content

Commit

Permalink
refactor: remove unused variables and const for in
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Sep 2, 2017
1 parent a28ac72 commit 81fd585
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/directives/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ specialDirectives["m-if"] = {
let data = prop.data;
let attrs = child.props;
let ifChild;
let elseNode;

if(attrs["m-else"] !== undefined) {
data.elseNode = [i, child];
Expand Down
2 changes: 1 addition & 1 deletion src/util/vdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ const createComponentFromVNode = function(node, vnode, component) {
* @param {Object} oldEventListeners
*/
const diffEventListeners = function(node, eventListeners, oldEventListeners) {
for(const type in eventListeners) {
for(let type in eventListeners) {
const oldEventListener = oldEventListeners[type];
if(oldEventListener === undefined) {
addEventHandler(node, type, eventListeners);
Expand Down

0 comments on commit 81fd585

Please sign in to comment.