Scope of this lost in the callback function. I think this can be achieved with bind function in enyo but I am not aware how to use it exactly in my example.
Please suggest how to implement this in below example.
That should do it. enyo.bind requires the first argument to be the scope, so this in your example, and the second to be the function, which is fulfilled by this.getPositionSuccess.
Comments