Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F8440
common.js
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:59 PM
2014-11-21 23:59:59 (UTC+0)
Size
422 B
Referenced Files
None
Subscribers
None
common.js
View Options
//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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7960
Default Alt Text
common.js (422 B)
Attached To
Mode
T35711: mw.util.$content is undefined in MediaWiki:Common.js
Attached
Detach File
Event Timeline
Log In to Comment