You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

events.js 405 B

12345678910111213141516171819202122232425
  1. define([
  2. 'js/system/events'
  3. ], function(
  4. events
  5. ) {
  6. return {
  7. type: 'events',
  8. list: [],
  9. init: function() {
  10. this.list.forEach(function(q) {
  11. events.emit('onObtainEvent', q);
  12. });
  13. },
  14. extend: function(blueprint) {
  15. if (blueprint.updateList) {
  16. blueprint.updateList.forEach(function(q) {
  17. events.emit('onObtainEvent', q);
  18. this.list.push(q);
  19. }, this);
  20. }
  21. }
  22. };
  23. });