UNPKG

compound-ex4

Version:

Compound-ex4 - MVC framework for NodeJS (ExpressJs 4 version), fork compoundjs(https://github.com/1602/compound)

39 lines (31 loc) 516 B
'use strict'; module.exports = function (t, a, d) { var called = 0, fn = t(function () { ++called; }); fn(); fn(); fn(); setTimeout(function () { a(called, 1); called = 0; fn = t(function () { ++called; }, 50); fn(); fn(); fn(); setTimeout(function () { fn(); fn(); setTimeout(function () { fn(); fn(); setTimeout(function () { fn(); fn(); setTimeout(function () { a(called, 1); d(); }, 70); }, 30); }, 30); }, 30); }, 10); };