Page MenuHomePhabricator

common.js

Authored By
bzimport
Nov 21 2014, 11:59 PM
Size
422 B
Referenced Files
None
Subscribers
None

common.js

//wait for mw.util
mw.loader.using( 'mediawiki.util', function () {
$(function() {
console.log( '$content is ' + (mw.util.$content === null ? '' : 'not ') + 'null in jQuery.ready');
});
//mw.util.callback is provided by the patch
if (!mw.util.callback) {
return;
}
mw.util.callback.add(function() {
console.log( '$content is ' + (mw.util.$content === null ? '' : 'not ') + 'null in mw.util.callback');
});
});

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7960
Default Alt Text
common.js (422 B)

Event Timeline