Chromium Code Reviews
DescriptionMD Downloads: handle date hiding/showing more sanely
Previously, items where created by accessing the physical DOM. As in:
someElementItem.hideDate = true/false. But then hideDate was moved to
an item's data. I accidentally left a property binding around.
Additionally, changing .data.hideDate doesn't actually trigger observers
in iron-list to fire as it's changing a sub-property of a complex
object. So instead, use the .set() API to ensure iron-list is notified
so it can update the template instance's data for the physical itmes it
owns.
It may be possible to test this, but:
* we've had issues in the past testing multiple items in an iron-list
(and this test would require at least 2 items to be useful)
* you're not really supposed to use or depend on the physical items
of an iron-list, which is actually what we'd need to check
R=dpapad@chromium.org
BUG=656580
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation
Committed: https://crrev.com/9ce83c55f556e739b053e6be5f0034870be47c37
Cr-Commit-Position: refs/heads/master@{#427883}
Patch Set 1 #
Messages
Total messages: 14 (9 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||