[ALOY-1285] TSS conditional statement is ignored by items dynamically generated on runtime
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Critical |
| Status | Resolved |
| Resolution | Fixed |
| Resolution Date | 2015-09-30T22:06:44.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Styling |
| Labels | TCSupportTriage |
| Reporter | Ferry Mulyono |
| Assignee | Feon Sua Xin Miao |
| Created | 2014-12-27T00:37:13.000+0000 |
| Updated | 2015-09-30T22:17:34.000+0000 |
Description
Below is the sample of the TSS condition statement:
".date[if=false]": {
backgroundColor: "#f00"
}
This always gets executed, even if logically it shouldn't be.
It happens to elements created on runtime by this code:
label = $.UI.create('Label', { text: displayDate, classes: ['date']} );
PR: https://github.com/appcelerator/alloy/pull/718