Scott Baker | 999edc6 | 2014-06-18 15:40:56 -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 | } |