Bug Tracker

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#13484 closed bug (notabug)

$.event.trigger no longer working with .on()

Reported by: jordanrs2k1@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

The following code works fine in v 1.8.3 but upgrading up to v 1.9.X the event stops firing

$('#someelement').on('blaa', function(){
  console.log('blaa fired');
})

$.event.trigger('blaa')

I have created a simple fiddle to see the difference between the two version

http://jsfiddle.net/6QrHC/1/

Change History (2)

comment:1 Changed 6 years ago by dmethvin

Resolution: notabug
Status: newclosed

Sorry but whoever told you to use $.event.trigger() at all was wrong. It is not a documented interface.

comment:2 Changed 6 years ago by anonymous

O well, thanks for the heads up, i shall stop using it.

Note: See TracTickets for help on using tickets.