Merge "Make dependencies of jquery.uls.data more specific"

This commit is contained in:
jenkins-bot 2015-11-17 23:44:07 +00:00 committed by Gerrit Code Review
commit 4785177791
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 () {