Advertisement
Guest User

Untitled

a guest
Jan 25th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. // Constructor
  2. function Team(url,name,shortName) {
  3. this.url = url;
  4. this.name = name;
  5. this.shortName = shortName;
  6. this.standings = {};
  7. this.fixtures = {};
  8. }
  9.  
  10. Team.prototype.addMatch = function(matchday,matchID) {
  11. this.fixtures[matchday] = matchID;
  12. }
  13.  
  14. // Change color when hit
  15. Team.prototype.updateStanding = function(matchday,position) {
  16. this.standings[matchday] = position;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement