Bug Tracker

Modify

Ticket #5197 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

Cannot pass data to event function with live() using function (){}()

Reported by: brianfreud Owned by:
Priority: major Milestone: 1.4
Component: event Version: 1.3.2
Keywords: Cc: brianfreud
Blocking: Blocked by:

Description

$('body').live('click', function (testVar) { alert(testVar); }("bar"));

Throws an error around line 2774 of 1.3.2,

proxy.guid = fn.guid = fn.guid
proxy.guid this.guid++;

that 'fn is undefined'.

Change History

comment:1 Changed 4 years ago by flesler

  • Cc brianfreud added
  • Resolution set to duplicate
  • Status changed from new to closed
  • Component changed from unfilled to event

Duplicate of #4612.

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.