commit | 95d6c5cb91712cc881691f1754fc2f77a73003f7 | [log] [tgz] |
---|---|---|
author | Scott Baker <smbaker@gmail.com> | Mon Jul 07 21:54:35 2014 -0700 |
committer | Scott Baker <smbaker@gmail.com> | Mon Jul 07 21:54:35 2014 -0700 |
tree | b86894f55a467dd26e1bb43fb93799d4b61fc9ba | |
parent | b7aba68631793a6960b8cb5338c42b3ffbe1baf4 [diff] [blame] |
xoslib wip
diff --git a/planetstack/core/xoslib/static/xsh/object_id.js b/planetstack/core/xoslib/static/xsh/object_id.js new file mode 100644 index 0000000..15cbbb9 --- /dev/null +++ b/planetstack/core/xoslib/static/xsh/object_id.js
@@ -0,0 +1,12 @@ +var ObjectIdCounter = 0; + +var ObjectId = function() { + this.counter = (ObjectIdCounter += 1); + this.str = this.counter; + this.initialize(); + return this.counter; +}; + +ObjectId.prototype.initialize = function() { + return this.counter; +}