From 870334be3f58507c05bfc72f3edbe5db10af4caf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Apr 2013 20:06:16 +0400 Subject: remove dojo uncompressed files --- lib/dijit/_BidiSupport.js.uncompressed.js | 113 ------------------------------ 1 file changed, 113 deletions(-) delete mode 100644 lib/dijit/_BidiSupport.js.uncompressed.js (limited to 'lib/dijit/_BidiSupport.js.uncompressed.js') diff --git a/lib/dijit/_BidiSupport.js.uncompressed.js b/lib/dijit/_BidiSupport.js.uncompressed.js deleted file mode 100644 index 4a43c1f06..000000000 --- a/lib/dijit/_BidiSupport.js.uncompressed.js +++ /dev/null @@ -1,113 +0,0 @@ -define("dijit/_BidiSupport", ["./_WidgetBase"], function(_WidgetBase){ - - // module: - // dijit/_BidiSupport - - /*===== - return function(){ - // summary: - // Module that deals with BIDI, special with the auto - // direction if needed without changing the GUI direction. - // Including this module will extend _WidgetBase with BIDI related methods. - // description: - // There's a special need for displaying BIDI text in rtl direction - // in ltr GUI, sometimes needed auto support. - // In creation of widget, if it's want to activate this class, - // the widget should define the "textDir". - }; - =====*/ - - _WidgetBase.extend({ - - getTextDir: function(/*String*/ text){ - // summary: - // Gets the right direction of text. - // description: - // If textDir is ltr or rtl returns the value. - // If it's auto, calls to another function that responsible - // for checking the value, and defining the direction. - // tags: - // protected. - return this.textDir == "auto" ? this._checkContextual(text) : this.textDir; - }, - - _checkContextual: function(text){ - // summary: - // Finds the first strong (directional) character, return ltr if isLatin - // or rtl if isBidiChar. - // tags: - // private. - - // look for strong (directional) characters - var fdc = /[A-Za-z\u05d0-\u065f\u066a-\u06ef\u06fa-\u07ff\ufb1d-\ufdff\ufe70-\ufefc]/.exec(text); - // if found return the direction that defined by the character, else return widgets dir as defult. - return fdc ? ( fdc[0] <= 'z' ? "ltr" : "rtl" ) : this.dir ? this.dir : this.isLeftToRight() ? "ltr" : "rtl"; - }, - - applyTextDir: function(/*Object*/ element, /*String*/ text){ - // summary: - // Set element.dir according to this.textDir - // element: - // The text element to be set. Should have dir property. - // text: - // Used in case this.textDir is "auto", for calculating the right transformation - // description: - // If textDir is ltr or rtl returns the value. - // If it's auto, calls to another function that responsible - // for checking the value, and defining the direction. - // tags: - // protected. - - var textDir = this.textDir == "auto" ? this._checkContextual(text) : this.textDir; - // update only when there's a difference - if(element.dir != textDir){ - element.dir = textDir; - } - }, - enforceTextDirWithUcc: function(option, text){ - // summary: - // Wraps by UCC (Unicode control characters) option's text according to this.textDir - // option: - // The element (`