https://bugzilla.wikimedia.org/show_bug.cgi?id=36379
--- Comment #5 from Krinkle <[email protected]> 2012-05-15 09:25:17 UTC --- I'm assuming that is for CSS classes and IDs, right? For javascript modules you wouldn't use dashes since that would make the variable still global. It'd instead be something like this: ( function ( $, mw ) { mw.mobileFrontend = { foo: 'bar' }; }( jQuery, mediaWiki ) ); ( function ( $, mw ) { var mf = mw.mobileFrontend; $( '#mw-mf-foo' ).text( mf.foo ); }( jQuery, mediaWiki ) ); -- 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
