Skip to content
Snippets Groups Projects
Commit 32ebf886 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Address occasional TypeError: this.current is undefined

parent 8fd3f620
No related branches found
No related tags found
No related merge requests found
...@@ -392,7 +392,7 @@ Tree.prototype.getcmd = function(cmd) { ...@@ -392,7 +392,7 @@ Tree.prototype.getcmd = function(cmd) {
retval = this.deleteItem(); retval = this.deleteItem();
break; break;
case this.__commands__.SELECT: case this.__commands__.SELECT:
if(this.__properties__.index >= 0) if(this.current !== undefined && this.__properties__.index >= 0)
retval = this.current.action(); retval = this.current.action();
else else
retval = this.close(); retval = this.close();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment