eventfirestag.js 449 B

12345678910111213141516171819202122232425262728293031
  1. /**
  2. * @class
  3. */
  4. var Hurl = function () {
  5. };
  6. /**
  7. * Throw a snowball.
  8. *
  9. * @fires Hurl#snowball
  10. * @fires Hurl#event:brick
  11. */
  12. Hurl.prototype.snowball = function () {
  13. /**
  14. * @event Hurl#snowball
  15. */
  16. this.emit('snowball', {});
  17. };
  18. /**
  19. * Throw a football match.
  20. *
  21. * @emits Hurl#footballMatch
  22. */
  23. Hurl.prototype.footballMatch = function () {
  24. /**
  25. * @event Hurl#footballMatch
  26. */
  27. this.emit('footballMatch', {});
  28. };