r63631 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63630‎ | r63631 | r63632 >
Date:10:58, 12 March 2010
Author:jojo
Status:ok
Tags:
Comment:
simplify initialization of $
Modified paths:
  • /trunk/extensions/Collection/js/bookcreator.js (modified) (history)

Diff [purge]

Index: trunk/extensions/Collection/js/bookcreator.js
@@ -19,13 +19,8 @@
2020 * http://www.gnu.org/copyleft/gpl.html
2121 */
2222
23 -(function() {
 23+(function($) {
2424
25 -var $ = window.$;
26 -if (typeof $ == 'undefined') {
27 - $ = jQuery;
28 -}
29 -
3025 function refreshBookCreatorBox(hint, oldid) {
3126 sajax_request_type = 'GET';
3227 sajax_do_call('wfAjaxCollectionGetBookCreatorBoxContent', [hint, oldid], function(xhr) {
@@ -177,4 +172,4 @@
178173 });
179174 });
180175
181 -})();
 176+})(jQuery);

Status & tagging log