attr
live.attr(el, attributeName, compute)
Keep an attribute live to a can-compute.
var div = document.createElement('div');
var compute = canCompute("foo bar");
live.attr(div,"class", compute);
Parameters
- el
{HTMLElement}
:The element whos attribute will be kept live.
- attributeName
{String}
:The attribute name.
- compute
{can-compute}
:The compute.