Changeset 14
- Timestamp:
- 10/26/05 16:44:36 (3 years ago)
- Files:
-
- jsolait/trunk/jsolait/jsolait.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
jsolait/trunk/jsolait/jsolait.js
r12 r14 126 126 //todo 127 127 NewClass.prototype.__hash__=function(){ 128 if(NewClass.__objcnt__){ 129 NewClass.__objcnt__ ++; 130 }else{ 131 NewClass.__objcnt__ = 1; 132 } 133 return NewClass.__objcnt__; 128 if(this.__id__==null){ 129 this.__id__ = '#auto#' + Class.hashCount++ 130 } 131 return this.__id__; 134 132 }; 135 133 break; … … 182 180 return NewClass; 183 181 }; 184 182 Class.hashCount=0; 185 183 Class.toString = function(){ 186 184 return "[object Class]";
