tidy bidi support

remove unused variable, redundant comment, don't need jquery
This commit is contained in:
Josh Barnes 2017-11-16 01:17:30 +00:00
parent 3f2aa86ba2
commit 60b7c22977

View File

@ -5,7 +5,6 @@ define(['bidi/numericshaping'], function(numericshaping) {
'use strict';
var shaperType = '';
var textDir = '';
var _uiLang = function() {
return navigator.language.toLowerCase();
@ -13,7 +12,7 @@ define(['bidi/numericshaping'], function(numericshaping) {
var _loadLocale = function() {
if (_isMirroringEnabled()) {
$('body').attr('dir', 'rtl');
document.body.dir = 'rtl';
}
require(['moment'], function (moment) {
@ -27,11 +26,6 @@ define(['bidi/numericshaping'], function(numericshaping) {
return new RegExp('^(ar|he)').test(_uiLang());
};
/**
* NS : for digit Shaping.
* BTD : for future work in case of Base Text Direction Addition.
*/
/**
* @param value : the string to apply the bidi-support on it.
* @param flag :indicates the type of bidi-support (Numeric-shaping ,Base-text-dir ).