Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/fbeline/design-patterns-JS
/ OffCommand
Function
OffCommand
src/behavioral/command/command.js:44–46 ·
view source on GitHub ↗
(turbine)
Source
from the content-addressed store, hash-verified
42
};
43
44
function
OffCommand(turbine) {
45
this.turbine = turbine;
46
}
47
48
OffCommand.prototype.execute =
function
() {
49
this.turbine.off();
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected