Skip to main content

Bug Tracker

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 dmethvin comment:1

resolution: → invalid
status: newclosed

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.

Changed July 12, 2012 01:42AM UTC by dmethvin comment:2

#12041 is a duplicate of this ticket.

Changed July 12, 2012 07:19PM UTC by dmethvin comment:3

#12073 is a duplicate of this ticket.

Changed July 13, 2012 08:54AM UTC by gnarf 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?