Almost all JavaScript files in core use "TODO", in all caps
and without @.
Onyl a few files used "todo", "@todo", or "Todo", and this
is fixed here for consistency.
Change-Id: I7478868c07f3a0bd16196ca1cfeb7f8f60fa2a9d
*/
$.fn.hidpi = function () {
var $target = this,
*/
$.fn.hidpi = function () {
var $target = this,
- // @todo add support for dpi media query checks on Firefox, IE
+ // TODO add support for dpi media query checks on Firefox, IE
devicePixelRatio = $.devicePixelRatio(),
testImage = new Image();
devicePixelRatio = $.devicePixelRatio(),
testImage = new Image();
var reader = new FileReader();
if ( callbackBinary && 'readAsBinaryString' in reader ) {
// To fetch JPEG metadata we need a binary string; start there.
var reader = new FileReader();
if ( callbackBinary && 'readAsBinaryString' in reader ) {
// To fetch JPEG metadata we need a binary string; start there.
reader.onload = function () {
callbackBinary( reader.result );
reader.onload = function () {
callbackBinary( reader.result );
.empty()
.append(
// Ugh…
.empty()
.append(
// Ugh…
- // @todo Change the HTML structure in includes/templates/Usercreate.php
+ // TODO Change the HTML structure in includes/templates/Usercreate.php
$( '<strong>' ).text( mw.message( 'createacct-error' ).text() ),
$( '<br>' ),
document.createTextNode( message )
$( '<strong>' ).text( mw.message( 'createacct-error' ).text() ),
$( '<br>' ),
document.createTextNode( message )
params.wbptterms = 'description';
}
req = new mw.Api().get( params );
params.wbptterms = 'description';
}
req = new mw.Api().get( params );
- promiseAbortObject.abort = req.abort.bind( req ); // todo: ew
+ promiseAbortObject.abort = req.abort.bind( req ); // TODO ew
return req;
}
} ).promise( promiseAbortObject );
return req;
}
} ).promise( promiseAbortObject );
return $.Deferred().resolve( cache[ url ] ).promise();
}
return $.Deferred().resolve( cache[ url ] ).promise();
}
- // @todo Don't fetch the entire page. Ideally we'd only fetch the content portion or the data
+ // TODO Don't fetch the entire page. Ideally we'd only fetch the content portion or the data
// (thumbnail urls) and update the interface manually.
jqXhr = $.ajax( url ).then( function ( data ) {
return $( data ).find( 'table.multipageimage' ).contents();
// (thumbnail urls) and update the interface manually.
jqXhr = $.ajax( url ).then( function ( data ) {
return $( data ).find( 'table.multipageimage' ).contents();
assert.equal( hello.key, 'hello', 'Message property "key" (currect key)' );
assert.deepEqual( hello.parameters, [], 'Message property "parameters" defaults to an empty array' );
assert.equal( hello.key, 'hello', 'Message property "key" (currect key)' );
assert.deepEqual( hello.parameters, [], 'Message property "parameters" defaults to an empty array' );
assert.ok( hello.params, 'Message prototype "params"' );
hello.format = 'plain';
assert.ok( hello.params, 'Message prototype "params"' );
hello.format = 'plain';