appcelerator/alloy — pull request #108 by raojx (2013-02-10 16:34:44+00:00)
Title: Initial checkin of dynamic styles and orietnation change prototype

1. Add orientation query handling, I basically copied the
treatment of formFactor here. The orientation query is
similar to formFactor: orientation=landscape, or
orientation=portrait
2. Add an _init() function to controller, which will take
a refresh parameter. If refresh is false, we initialize
the controller like before; otherwise we use
applyProperties to refresh the nodes

I didn't add the actually handling of orientation change
event since I haven't thought about where best to put it.
But basically you should be able to add the orientation
query in tss, then call controller.__init({}, true) in
orientation change event to make the change.