[ALOY-685] Port generateStyleParams() into a runtime version
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2013-06-05T20:24:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Alloy 1.2.0, 2013 Sprint 12 |
Components | Runtime, Styling |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2013-06-03T21:11:34.000+0000 |
Updated | 2018-03-07T22:25:52.000+0000 |
Description
generateStyleParams() creates style code at compile time. This code needs to ported and optimized for runtime to allow the dynamic application of styles to titanium proxies. By optimization, I mean that all possible runtime conditionals that could not be processed during the compile step should be processed once, and only once, as to make all subsequent applications of styles faster.
PR: https://github.com/appcelerator/alloy/pull/145 test app: https://github.com/appcelerator/alloy/tree/master/test/apps/testing/ALOY-685 To confirm functional test, just run the app on all supported platforms and make sure that the automated runtime unit tests all pass when opening the app. This makes sure the generated style for all labels is accurate.