example.js 355 B

1234567891011121314151617
  1. #!/usr/bin/env node
  2. !global.Glagol
  3. ? require('glagol')(__dirname).nodes[require('path').basename(__filename)]()()
  4. : (function () {
  5. console.log("hello")
  6. var x = setTimeout(function tick () {
  7. _.tick();
  8. x = setTimeout(tick, _.delay);
  9. });
  10. return function stop () {
  11. clearTimeout(x);
  12. };
  13. })