Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Use let instead of var to avoid double declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 26, 2016
1 parent 0a3dc6b commit f9ebd52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/plugins/gui.ajax/res/js/es6/model/Action.es6
Expand Up @@ -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){
Expand All @@ -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();
Expand Down

0 comments on commit f9ebd52

Please sign in to comment.