Permalink
Browse files

Use let instead of var to avoid double declaration

  • Loading branch information...
1 parent 0a3dc6b commit f9ebd52308c01c6e08ec9ac85d7ef4bd4c818b6a @cdujeu cdujeu committed May 26, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/plugins/gui.ajax/res/js/es6/model/Action.es6
@@ -302,7 +302,7 @@ class Action extends Observable{
}
if(this.options.activeCondition){
try{
- var result = this.options.activeCondition();
+ let result = this.options.activeCondition();
if(result === false) this.disable();
else if(result === true) this.enable();
}catch(e){
@@ -329,7 +329,7 @@ class Action extends Observable{
else this.disable();
}
if(selectionContext.evalMetadata && userSelection && userSelection.isUnique()){
- var result = this._evalScripts(selectionContext.evalMetadata, userSelection.getUniqueNode().getMetadata());
+ let result = this._evalScripts(selectionContext.evalMetadata, userSelection.getUniqueNode().getMetadata());
if(!result){
if(selectionContext.behaviour == 'hidden') this.hide();
else this.disable();

0 comments on commit f9ebd52

Please sign in to comment.