Merge branch 'master' of ssh://git.planet-lab.org/git/plstackapi into observer3.0
[plstackapi.git] / planetstack / core / xoslib / static / js / xsh / object_id.js
diff --git a/planetstack/core/xoslib/static/js/xsh/object_id.js b/planetstack/core/xoslib/static/js/xsh/object_id.js
new file mode 100644 (file)
index 0000000..15cbbb9
--- /dev/null
@@ -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;
+}