MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / update

Method update

src/controller/Controller.js:36–40  ·  view source on GitHub ↗

* Calls all functions for buttons that are currently set to enabled. * @memberof Controller

()

Source from the content-addressed store, hash-verified

34 * @memberof Controller
35 */
36 update() {
37 for (let i = 0, l = this.keys.length; i < l; i++) {
38 this.buttons[this.keys[i]].action();
39 }
40 }
41
42 /**
43 * Called on keyup. Sets flag to 1 if key is being watched.

Callers 1

Controller.spec.jsFile · 0.45

Calls 1

actionMethod · 0.80

Tested by

no test coverage detected