Line 687 - 693:

Code:
        if(this.tools){
            var ts = this.tools;
            this.tools = {};
            this.addTool.apply(this, ts);
        }else{
            this.tools = {};
        }
Notice the line

Code:
this.addTool.apply(this, ts);
Obviously, Function.prototype.apply expects the second argument to be of type Array, but instead an object is passed, which will throw an error.

Changing the line

Code:
this.addTool.apply(this, ts);
to

Code:
this.addTool.apply(this, [ts]);
Will fix this issue.


HTHATINCW

Thorsten