| 1 |
define([ |
| 2 |
"dojo/_base/declare", |
| 3 |
"./common", |
| 4 |
"dojo/dom-class" |
| 5 |
], function(declare, common, domClass){ |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
return declare(null, { |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
_setBadgeAttr: function( text){ |
| 17 |
this.inherited(arguments); |
| 18 |
this.badgeObj.setTextDir(this.textDir); |
| 19 |
}, |
| 20 |
_setIcon: function(icon, n){ |
| 21 |
this.inherited(arguments); |
| 22 |
|
| 23 |
if(this.iconDivNode && !this.isLeftToRight()){ |
| 24 |
domClass.remove(this.iconDivNode, "mblTabBarButtonIconArea"); |
| 25 |
domClass.add(this.iconDivNode, "mblTabBarButtonIconAreaRtl"); |
| 26 |
} |
| 27 |
} |
| 28 |
}); |
| 29 |
}); |