Skip to main content

Bug Tracker

Side navigation

#7548 closed feature (duplicate)

Opened November 17, 2010 11:10PM UTC

Closed November 18, 2010 02:30AM UTC

Last modified March 18, 2013 04:35PM UTC

trigger order

Reported by: szabobogdan@yahoo.com Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:
Description

It would be nice if you can add a parameter for the bind method, to set a priority or an order to execute the function.

I have a problem with $(window).resize(). I am attaching lots of functions loaded trough ajax and it's hard to calculate the sizes because is hard to predict when the functions are triggered.

Sorry for my bad english

Attachments (0)
Change History (3)

Changed November 18, 2010 02:30AM UTC by dmethvin comment:1

resolution: → duplicate
status: newclosed

We've discussed and rejected this feature several times before. There isn't any way to guarantee the execution order when multiple independent actors are involved and they bind/unbind events. You can say "I want to run first" but then someone comes along later and says "*I* want to run first."

If you control all the code and know you need a particular order, bind a single handler to the resize event and execute the handlers in the order you require.

Changed November 18, 2010 02:30AM UTC by dmethvin comment:2

Duplicate of #3781.

Changed March 18, 2013 04:35PM UTC by timmywil comment:3

#13619 is a duplicate of this ticket.