Opened 10 years ago
Closed 10 years ago
#13007 closed bug (notabug)
Trigger & bind a custom event with eventType is the same of method name throw an Error
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Class = function() {}
Class.prototype = {
method: function() {
$(this).trigger('method')
}
}
c = new Class $(c).on('method', function() {})
c.method()
In the latest Chrome it throw an error: RangeError: Maximum call stack size exceeded
Note: See
TracTickets for help on using
tickets.
As documented. http://api.jquery.com/trigger/