Bug Tracker

Ticket #9209 (closed bug: worksforme)

Opened 4 years ago

Last modified 4 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 4 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


Note: See TracTickets for help on using tickets.