Modify ↓
Ticket #10907 (closed bug: invalid)
triggering custom events with namespace triggers "property xxx of object yyy is not a function"
| Reported by: | stryjewski.t@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
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.