MCPcopy Create free account
hub / github.com/codecombat/codecombat / handleEvent

Function handleEvent

test/app/lib/surface/LankBoss.spec.js:139–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137 let ticks = 0;
138 const listener = {
139 handleEvent() {
140 if (ticks >= 100) { return; }
141 ticks += 1;
142 if ((ticks % 20) === 0) {
143 lankBoss.update(true);
144 }
145 return stage.update();
146 }
147 };
148 createjs.Ticker.addEventListener("tick", listener);
149 return $('body').append($('<div style="position: absolute; top: 295px; left: 395px; height: 10px; width: 10px; background: red;"></div>'));

Callers

nothing calls this directly

Calls 1

updateMethod · 0.45

Tested by

no test coverage detected