Adrian Lang has uploaded a new change for review. https://gerrit.wikimedia.org/r/175994
Change subject: Remove dependency on wikibase resource loader module ...................................................................... Remove dependency on wikibase resource loader module Change-Id: Ie0da9c09def233acc7fb08a3ccbe712146eb08f4 --- M src/namespace.js M src/resources.php M tests/resources.php 3 files changed, 4 insertions(+), 6 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikibaseJavaScriptApi refs/changes/94/175994/1 diff --git a/src/namespace.js b/src/namespace.js index 3991d16..bf080a4 100644 --- a/src/namespace.js +++ b/src/namespace.js @@ -1,5 +1,6 @@ -( function( wb ) { +( function( global ) { 'use strict'; - wb.api = {}; -}( wikibase ) ); + global.wikibase = global.wikibase || {}; + global.wikibase.api = global.wikibase.api || {}; +}( this ) ); diff --git a/src/resources.php b/src/resources.php index 86ddd23..7dcde07 100644 --- a/src/resources.php +++ b/src/resources.php @@ -19,7 +19,6 @@ 'namespace.js' ), 'dependencies' => array( - 'wikibase' // For the namespace ) ), diff --git a/tests/resources.php b/tests/resources.php index dabdcc7..9a787a5 100644 --- a/tests/resources.php +++ b/tests/resources.php @@ -21,7 +21,6 @@ 'RepoApi.tests.js', ), 'dependencies' => array( - 'wikibase', 'wikibase.api.getLocationAgnosticMwApi', 'wikibase.api.RepoApi', ), @@ -32,7 +31,6 @@ 'RepoApiError.tests.js', ), 'dependencies' => array( - 'wikibase', 'wikibase.api.RepoApiError', ), 'messages' => array( -- To view, visit https://gerrit.wikimedia.org/r/175994 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie0da9c09def233acc7fb08a3ccbe712146eb08f4 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/WikibaseJavaScriptApi Gerrit-Branch: master Gerrit-Owner: Adrian Lang <adrian.l...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits