lsmith / yui3

YUI 3.x Source Tree
http://developer.yahoo.com/yui/3/
Other
7 stars 0 forks source link

addRow/removeRow/updateRow #11

Closed lsmith closed 12 years ago

lsmith commented 12 years ago

Auto-mix()ed class extension.

Adds methods (from issue title) to DT proto as relays to the ModelList methods. Is this worth splitting out to an extension instead of just putting it in Core?

Having this be a class extension suggests the core implementation should not include state change subscriptions for data (or by association, columns), requiring the implementer to update the ML and manually call table.body.render() again to replace the <tbody> wholesale. This extension then replaces the manual work that would have been done, and should do the right thing by preserving existing DOM elements (or should it prefer performance?)