domData.set
function
domData.set.call(el, key, value)
Parameters
- name
{String}:the key to store the value under
- value
{*}:the value to store under the key
Set data to be associated with a DOM Node using the specified
key. If data already exists for this key, it will be overwritten.domData.set.call(el, "metadata", { foo: "bar" });