Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/spritejs/spritejs
/ setAttribute
Method
setAttribute
src/node/node.js:442–447 ·
view source on GitHub ↗
(key, value)
Source
from the content-addressed store, hash-verified
440
}
441
442
setAttribute(key, value) {
443
if
(key ===
'attrs'
) {
444
this.attr(value);
445
}
446
this.attributes[key] = value;
447
}
448
449
setMouseCapture() {
450
if
(this.layer) {
Callers
2
attr
Method · 0.95
removeAttribute
Method · 0.95
Calls
1
attr
Method · 0.95
Tested by
no test coverage detected