Bug Tracker

Modify

Ticket #10907 (closed bug: invalid)

Opened 18 months ago

Last modified 10 months ago

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

comment:1 Changed 18 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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.

comment:2 Changed 11 months ago by dmethvin

#12041 is a duplicate of this ticket.

comment:3 Changed 11 months ago by dmethvin

#12073 is a duplicate of this ticket.

comment:4 Changed 10 months ago by gnarf

although this kinda sucks cuz triggerHandler doesn't propagate... just don't name your custom events things that are properties on elements I guess?

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.