Skip to content

Pass custom context to commands #327

Description

@tartinesKiller

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 ! :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions