Vote.constructor (choice, usr) |
constructor function for vote objects |
Sourcecode in Vote/objectFunctions.js:
1: function constructor(choice, usr) { 2: this.choice = choice; 3: this.user = usr; 4: this.username = usr.name; 5: this.createtime = this.modifytime = new Date(); 6: return this; 7: } |