Skip to main content

Bug Tracker

Side navigation

#13484 closed bug (notabug)

Opened February 20, 2013 05:14PM UTC

Closed February 20, 2013 05:18PM UTC

Last modified February 20, 2013 05:24PM UTC

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

Reported by: jordanrs2k1@gmail.com 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/

Attachments (0)
Change History (2)

Changed February 20, 2013 05:18PM UTC by dmethvin comment:1

resolution: → notabug
status: newclosed

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

Changed February 20, 2013 05:24PM UTC by anonymous comment:2

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