enyojs/moonstone — pull request #1223 by aarontam (2014-04-02 00:21:15+00:00)
Title: BHV-3181: Preserve default alignment when text has different directionality.

Issue
-------
When there is text present that has a different directionality (as determined by our checkRtl method) than the default directionality, the text is not aligned according to the original/default directionality.

Fix
----
We preserve text alignment by setting `text-align: left` and `text-align: right` for LTR and RTL modes, respectively, at the body level, so that controls may easily override this in the CSS (i.e. `moon.Button`). Additionally, the `checkRtl` method has been moved from `Marquee` into Enyo core to allow general access to any control (specifically `moon.BodyText` in this case).

Notes
--------
This PR is dependent on an Enyo PR: https://github.com/enyojs/enyo/pull/696

Enyo-DCO-1.1-Signed-off-by: Aaron Tam