#10907 closed bug (invalid)
triggering custom events with namespace triggers "property xxx of object yyy is not a function"
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
when i attached jQ UI autocomplete to input and tried to trigger custom event called "automplete.foo" it throws me an error
"Uncaught TypeError: Property 'autocomplete' of object #<HTMLInputElement> is not a function"
live example: http://jsfiddle.net/stryju/zWGvh/
Change History (4)
comment:1 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:4 Changed 11 years ago by
although this kinda sucks cuz triggerHandler doesn't propagate... just don't name your custom events things that are properties on elements I guess?
Note: See
TracTickets for help on using
tickets.
There is an autocomplete property on that element, which the code is trying to call. Use
.triggerHandler()
if you don't want to execute a default action.