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

Krinkle <[email protected]> changed:

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

--- Comment #15 from Krinkle <[email protected]> 2012-01-20 11:46:48 UTC ---
(mid-air collision)

(In reply to comment #10)
> (In reply to comment #8)
> > Since mw.util.$content wasn't used there it's fine now. It is used within a
> $(document).ready hook but that's fine.
> Krinkle thinks that when adding a dependency to mw.util AND wrapping the code
> accessing mw.util.$content inside a $(document).ready(function(){...}) or its
> short form $(function(){...}), mw.util.$content must be defined, which is not
> the case here why I reopened the bug.
> 

That is indeed what I thought.
Having mw.util available is good, but $content isn't available until
document-ready. init() is being ccalled in document-ready, becuase before that
event there is nothing $content can be set to, the elements need to exist
before they can be selected and cached in $content.

-- 
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