Skip to content

Commit

Permalink
tidy bidi support
Browse files Browse the repository at this point in the history
remove unused variable, redundant comment, don't need jquery
  • Loading branch information
jcb91 committed Nov 16, 2017
1 parent 3f2aa86 commit 60b7c22
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions notebook/static/bidi/bidi.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ define(['bidi/numericshaping'], function(numericshaping) {
'use strict';

var shaperType = '';
var textDir = '';

var _uiLang = function() {
return navigator.language.toLowerCase();
};

var _loadLocale = function() {
if (_isMirroringEnabled()) {
$('body').attr('dir', 'rtl');
document.body.dir = 'rtl';
}

require(['moment'], function (moment) {
Expand All @@ -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 ).
Expand Down

0 comments on commit 60b7c22

Please sign in to comment.