You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After reading the annyang sources, I've seen that the commands are executed in the window context, or in the annyang context.
I've moved all the annyang logic in a separate js file, and my commands contains a method call, this.method();. But actually this is undefined.
Expected Behavior
It should be possible to customize the commands context, like what is already done for callbacks.
Maybe there is already a way of doing this, but I didn't find it.
Keep up with the good work ! :)
The text was updated successfully, but these errors were encountered:
After reading the annyang sources, I've seen that the commands are executed in the window context, or in the annyang context.
I've moved all the annyang logic in a separate js file, and my commands contains a method call,
this.method();
. But actuallythis
is undefined.Expected Behavior
It should be possible to customize the commands context, like what is already done for callbacks.
Maybe there is already a way of doing this, but I didn't find it.
Keep up with the good work ! :)
The text was updated successfully, but these errors were encountered: