https://bugzilla.wikimedia.org/show_bug.cgi?id=31926

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #7 from Krinkle <[email protected]> 2012-10-05 21:14:22 UTC ---
This happens because both jQuery and addOnloadHook have their own queue.
JavaScript is single threaded and both are executing in the original order. So
two functions that both call addOnloadHook(), the first one will execute first,
and the second will interface the document the first left behind.

If a function depends on another function adding rows, then scheduling in
addOnloadHook or $(document).ready is not sufficient, it should instead add a
dependency to the other script and/or use a hook or other type of callback.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to