domData.set
domData.set.call(el, name, 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.var domData = require("can-util/dom/data/data"); domData.set.call(el, "metadata", { foo: "bar" });