Scott Baker | 95d6c5c | 2014-07-07 21:54:35 -0700 | [diff] [blame] | 1 | var ObjectIdCounter = 0; |
2 | |||||
3 | var ObjectId = function() { | ||||
4 | this.counter = (ObjectIdCounter += 1); | ||||
5 | this.str = this.counter; | ||||
6 | this.initialize(); | ||||
7 | return this.counter; | ||||
8 | }; | ||||
9 | |||||
10 | ObjectId.prototype.initialize = function() { | ||||
11 | return this.counter; | ||||
12 | } |