Reputation: 37058
I'm trying to figure out where an event is firing from, and I'm having zero luck.
So we have this:
this.model.on('change:inventory', this.inventory_callback, this);
And I set a breakpoint there and tried this in the chrome dev tools console:
monitorEvents(this.model)
But I got nothing. Tips? Advice? What am I doing wrong? Can I do it this way? If not, is there another way?
Upvotes: 4
Views: 2327
Reputation: 32286
monitorEvents()
is intended for tracking native DOM events only. According to the tip-of-tree source (source code link), this is the comprehensive list of monitor-able event types (read "event names prefixed by"):
Upvotes: 5