singleton.js~ (198B)
1 singleton = (function() { 2 var s = { uid: 0 }; 3 return { 4 uid: function () { 5 return s.uid++; 6 } 7 }; 8 })(); 9 10 function makeUid(obj) { 11 obj.uid = singleton.uid(); 12 }
wwwUnnamed repository; edit this file 'description' to name the repository. | |
| Log | Files | Refs | README |