| 1 | define([ |
| 2 | "dojo/_base/declare", |
| 3 | "./common" |
| 4 | ], function(declare, common){ |
| 5 | |
| 6 | // module: |
| 7 | // dojox/mobile/bidi/IconMenu |
| 8 | |
| 9 | return declare(null, { |
| 10 | // summary: |
| 11 | // Support for control over text direction for mobile IconMenu widget, using Unicode Control Characters to control text direction. |
| 12 | // description: |
| 13 | // Implementation for text direction, textDir is set to MenuItems. |
| 14 | // This class should not be used directly. |
| 15 | // Mobile IconMenu widget loads this module when user sets "has: {'dojo-bidi': true }" in data-dojo-config. |
| 16 | _setTextDirAttr: function(/*String*/ textDir){ |
| 17 | if(!this._created || this.textDir !== textDir){ |
| 18 | this._set("textDir", textDir); |
| 19 | common.setTextDirForButtons(this); |
| 20 | } |
| 21 | } |
| 22 | }); |
| 23 | }); |