Henning Snater has uploaded a new change for review. https://gerrit.wikimedia.org/r/122344
Change subject: Fix wikibase expert store registration ...................................................................... Fix wikibase expert store registration Change-Id: Icf5be6eb159ccd0f22fab2d09f42d45597a18d1a --- M lib/resources/experts/wikibase.experts.js M lib/tests/qunit/experts/EntityIdInput.tests.js 2 files changed, 6 insertions(+), 5 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/44/122344/1 diff --git a/lib/resources/experts/wikibase.experts.js b/lib/resources/experts/wikibase.experts.js index 7468328..a403751 100644 --- a/lib/resources/experts/wikibase.experts.js +++ b/lib/resources/experts/wikibase.experts.js @@ -2,7 +2,9 @@ * @licence GNU GPL v2+ * @author H. Snater < mediaw...@snater.com > */ -wikibase.experts = ( function( wb, dataTypeStore, vv, dv ) { +wikibase.experts = wikibase.experts || {}; + +wikibase.experts.store = ( function( wb, dataTypeStore, vv, dv ) { 'use strict'; var expertStore = new vv.ExpertStore( vv.experts.UnsupportedValue ); diff --git a/lib/tests/qunit/experts/EntityIdInput.tests.js b/lib/tests/qunit/experts/EntityIdInput.tests.js index 71b087b..3b649a1 100644 --- a/lib/tests/qunit/experts/EntityIdInput.tests.js +++ b/lib/tests/qunit/experts/EntityIdInput.tests.js @@ -2,7 +2,7 @@ * @licence GNU GPL v2+ * @author H. Snater < mediaw...@snater.com > */ -( function( $, QUnit, valueview ) { +( function( $, QUnit, valueview, wb ) { 'use strict'; var testExpert = valueview.tests.testExpert; @@ -10,8 +10,7 @@ QUnit.module( 'wikibase.experts.EntityIdInput' ); testExpert( { - expertConstructor: wikibase.experts.EntityIdInput, + expertConstructor: wb.experts.EntityIdInput } ); -}( jQuery, QUnit, jQuery.valueview ) ); - +}( jQuery, QUnit, jQuery.valueview, wikibase ) ); -- To view, visit https://gerrit.wikimedia.org/r/122344 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Icf5be6eb159ccd0f22fab2d09f42d45597a18d1a Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Henning Snater <henning.sna...@wikimedia.de> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits