Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. I use this line to populate the array within collection:
  2.  
  3. cc.newevent(ms_time,this.element.id,this.element.buttonstate);
  4.  
  5. Here is the definition of newevent:
  6.  
  7. this.newevent = function(time0, id0, state0) {
  8. console.log("newevent");
  9. this.events.push(event_definition());
  10. var event = this.events[this.events.length-1];
  11. event.time = time0;
  12. event.id = id0;
  13. event.state = state0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement