this.$label.replaceWith( this.$link );
this.setLabelElement( this.$link );
- /*jshint -W024*/
if ( !this.constructor.static.pageExistenceCaches[ this.apiUrl ] ) {
this.constructor.static.pageExistenceCaches[ this.apiUrl ] =
new PageExistenceCache( new mw.ForeignApi( this.apiUrl ) );
.done( function ( exists ) {
widget.setMissing( !exists );
} );
- /*jshint +W024*/
};
/* Setup */
/* Static Properties */
- /*jshint -W024*/
/**
* Map of API URLs to PageExistenceCache objects.
*
mw.widgets.CategoryCapsuleItemWidget.static.pageExistenceCaches = {
'': new PageExistenceCache()
};
- /*jshint +W024*/
/* Methods */