*/
$.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();
var reader = new FileReader();
if ( callbackBinary && 'readAsBinaryString' in reader ) {
// To fetch JPEG metadata we need a binary string; start there.
- // todo:
+ // TODO
reader.onload = function () {
callbackBinary( reader.result );
.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 )
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 $.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();
assert.equal( hello.key, 'hello', 'Message property "key" (currect key)' );
assert.deepEqual( hello.parameters, [], 'Message property "parameters" defaults to an empty array' );
- // Todo
+ // TODO
assert.ok( hello.params, 'Message prototype "params"' );
hello.format = 'plain';