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