Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cookpete/react-player
/ setAttribute
Method
setAttribute
test/helpers/server-safe-globals.js:32–39 ·
view source on GitHub ↗
(name, value)
Source
from the content-addressed store, hash-verified
30
}
31
32
setAttribute(name, value) {
33
if
(name ===
'src'
) {
34
this.#attrs.src = value;
35
this.load();
36
}
else
{
37
this.#attrs[name] = value;
38
}
39
}
40
41
getAttribute(name) {
42
return
this.#attrs[name];
Callers
2
src
Method · 0.95
muted
Method · 0.95
Calls
1
load
Method · 0.95
Tested by
no test coverage detected