Bug Tracker


Ticket #9209 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

.one is broken

Reported by: c.bakker@… Owned by:
Priority: low Milestone: 1.next
Component: event Version: 1.6
Keywords: Cc:
Blocking: Blocked by:


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

comment:1 Changed 3 years ago by rwaldron

  • Priority changed from undecided to low
  • Resolution set to worksforme
  • Status changed from new to closed
  • Component changed from unfiled to event

Works as expected in latest


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


Add a comment

Modify Ticket

as closed

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

Note: See TracTickets for help on using tickets.