Two-way data-binding is sooo 2009.
These methods do pretty much what you'd expect (assuming you're familiar with their single-attribute counterparts.)
getAll()
Returns a Javascript object containing all attributes in your instance and their values.
loadAll()
Grabs values for all known attributes from the DOM and stores the values in your instance.
Known attributes means that you must have usedset()
,load()
, or included the attribute in the call to the constructor.
pushAll()
Pushes all known attribute values out to the DOM.
Known attributes means that you must have usedset()
,load()
, or included the attribute in the call to the constructor.
syncAll()
Performs a loadAll()
, then a pushAll()
.