• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Event not being triggered

 
Rob Dennett
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an event binding defined thus:



And I am triggering it with this:



The the code that triggers the event is definitely being executed as evidenced in the Chrome debugger and $(document).data('events')['foo'] contains the binding when the event is triggered, yet when I put a breakpoint in the handler, it doesn't trip. What gives?

Thanks,
Rob
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Working fine for me: http://jsfiddle.net/pnPxN/

Can you make an example where it is not working?

Eric
 
Rob Dennett
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the problem. Another snippet of code was unbinding the event and rebinding it to a different function. I didn't notice this because the Chrome debugger doesn't show the guts of the function. Is there a way to see that in Chrome?

Thanks,
Rob
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic