Skip to content

Pubsub scope issues with "this"? #6

@jonsykes

Description

@jonsykes

regarding pubsub https://github.com/phiggins42/bloody-jquery-plugins/blob/master/pubsub.js

I was recently trying to use this within a class, by subscribing and then the callback was "this.handlerMethod" but when I fired the pub, the method was being fired, but if I console.log'ed the this value within the method it was now the topic class.

Not sure if that makes sense.

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