Side navigation
#10907 closed bug (invalid)
Opened November 28, 2011 10:03AM UTC
Closed November 28, 2011 02:34PM UTC
Last modified July 13, 2012 08:54AM UTC
triggering custom events with namespace triggers "property xxx of object yyy is not a function"
Reported by: | stryjewski.t@gmail.com | 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/
Attachments (0)
Change History (4)
Changed November 28, 2011 02:34PM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
Changed July 13, 2012 08:54AM UTC by comment:4
although this kinda sucks cuz triggerHandler doesn't propagate... just don't name your custom events things that are properties on elements I guess?
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.