Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9209 closed bug (worksforme)

.one is broken

Reported by: [email protected] Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.6
Keywords: Cc:
Blocked by: Blocking:


It seems like the .one function is broken. It executes multiple times. I've put some example code on JSFiddle: http://jsfiddle.net/KeesCBakker/8KY9d/5/.

Html: <button>Create</button> <div> </div>

jQuery document load: $('button').click(function(){

$('div').append('<span>Header1</span>'); $('div').append('<span>Header2</span>'); $('div').trigger('load');


$('div').one('load', function(){



Result: It keeps adding red header elements, but it should only do so the first time.

Remarks: When I use 1.5.2 everything works fine.

Change History (1)

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledevent
Priority: undecidedlow
Resolution: worksforme
Status: newclosed

Works as expected in latest


Note: See TracTickets for help on using tickets.