src/js/utils.js
branchpopcorn-port
changeset 505 b1e442d9a1bc
parent 502 0b3523c65578
child 553 10d08f43c534
--- a/src/js/utils.js	Wed Dec 21 10:56:09 2011 +0100
+++ b/src/js/utils.js	Wed Dec 21 16:06:41 2011 +0100
@@ -122,7 +122,11 @@
                                  replace(/\)/g, '%29').replace(/\*/g, '%2A');  
 }  
 
-
+IriSP.__guidCounter = 0;
+IriSP.guid = function(prefix) {
+  IriSP.__guidCounter += 1;
+  return prefix + IriSP.__guidCounter;
+};
 /* for ie compatibility
 if (Object.prototype.__defineGetter__&&!Object.defineProperty) {
    Object.defineProperty=function(obj,prop,desc) {