From d1da56a6cb23ef8983c1c616069ed98f37124fec Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Tue, 17 Nov 2015 15:34:23 -0800 Subject: [PATCH] Make dependencies of jquery.uls.data more specific Change-Id: I135defffc71d8aa61dc74bb871da96737a3eeb0c --- extension.json | 6 +++--- modules/ve-mw/init/ve.init.mw.Platform.js | 8 ++++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/extension.json b/extension.json index d15d098751..ee7d54fe55 100644 --- a/extension.json +++ b/extension.json @@ -432,8 +432,7 @@ "user.tokens", "ext.visualEditor.base", "ext.visualEditor.track", - "ext.visualEditor.targetLoader", - "jquery.uls.data" + "ext.visualEditor.targetLoader" ], "messages": [ "visualeditor-quick-access-characters.json", @@ -1597,7 +1596,8 @@ ], "dependencies": [ "ext.visualEditor.core", - "mediawiki.language.names" + "mediawiki.language.names", + "jquery.uls.data" ], "messages": [ "visualeditor-annotationbutton-language-tooltip", diff --git a/modules/ve-mw/init/ve.init.mw.Platform.js b/modules/ve-mw/init/ve.init.mw.Platform.js index fbe787a87d..79cae0b6be 100644 --- a/modules/ve-mw/init/ve.init.mw.Platform.js +++ b/modules/ve-mw/init/ve.init.mw.Platform.js @@ -158,13 +158,17 @@ ve.init.mw.Platform.prototype.getLanguageName = function ( code ) { * @method * @inheritdoc */ -ve.init.mw.Platform.prototype.getLanguageAutonym = $.uls.data.getAutonym; +ve.init.mw.Platform.prototype.getLanguageAutonym = function () { + return $.uls.data.getAutonym(); +}; /** * @method * @inheritdoc */ -ve.init.mw.Platform.prototype.getLanguageDirection = $.uls.data.getDir; +ve.init.mw.Platform.prototype.getLanguageDirection = function () { + return $.uls.data.getDir(); +}; /** @inheritdoc */ ve.init.mw.Platform.prototype.getUserLanguages = function () {