Hoo man has uploaded a new change for review. https://gerrit.wikimedia.org/r/166448
Change subject: Remove no longer needed wikibase.getSite*/hasSite wrapper ...................................................................... Remove no longer needed wikibase.getSite*/hasSite wrapper The old functions are no longer used as far as I can tell, so remove them. Change-Id: I390971affbe4ab0fda8c8b5e43c4ed4fd26d1330 --- M lib/resources/wikibase.js 1 file changed, 0 insertions(+), 19 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/48/166448/1 diff --git a/lib/resources/wikibase.js b/lib/resources/wikibase.js index 78e8a6f..f4ba1b6 100644 --- a/lib/resources/wikibase.js +++ b/lib/resources/wikibase.js @@ -63,23 +63,4 @@ return langCode; }; - this._proxyToWbSites = function( fnName ) { - // Late binding to this.sites because it's not there when this is executed - mw.log.deprecate( - this, - fnName, - function() { - return this.sites[fnName].apply( this.sites, arguments ); - }, - 'Use wikibase.sites.*Site*() instead.' - ); - }; - - this._proxyToWbSites( 'getSite' ); - this._proxyToWbSites( 'getSiteByGlobalId' ); - this._proxyToWbSites( 'getSiteGroup' ); - this._proxyToWbSites( 'getSites' ); - this._proxyToWbSites( 'getSitesOfGroup' ); - this._proxyToWbSites( 'hasSite' ); - } )( mediaWiki, jQuery ); -- To view, visit https://gerrit.wikimedia.org/r/166448 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I390971affbe4ab0fda8c8b5e43c4ed4fd26d1330 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Hoo man <h...@online.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits