On Thu, 21 Nov 2013 19:01:52 +0100, Daniel Friesen daniel@nadir-seen-fire.com wrote:
var title = Title::newFromText( 'Foo' ); if ( title ) { // Invalid titles may be null title->getUrl(); }
This was clearly supposed to be:
var title = mw.Title.newFromText( 'Foo' ); if ( title ) { // Invalid titles may be null title.getUrl(); }
:)