Make dependencies of jquery.uls.data more specific

Change-Id: I135defffc71d8aa61dc74bb871da96737a3eeb0c
This commit is contained in:
Ed Sanders 2015-11-17 15:34:23 -08:00
parent b5c16ac95c
commit d1da56a6cb
2 changed files with 9 additions and 5 deletions

View file

@ -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",

View file

@ -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 () {