Changeset 8894 for sandbox/minibase/trunk/modules
- Timestamp:
- 04/29/08 17:07:43 (7 months ago)
- Files:
-
- sandbox/minibase/trunk/modules/helma/minibase.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/minibase/trunk/modules/helma/minibase.js
r8884 r8894 8 8 * 9 9 * @param object the raw javascript object to wrap 10 * @param properties the persistent object properties 10 * @param properties the persistent object properties (optional) 11 11 */ 12 12 function Storable(object, properties) { … … 16 16 if (!(object.constructor instanceof Function)) 17 17 throw new Error("object must have a constructor property, has: " + object.constructor); 18 if (properties === undefined) 19 properties = {}; 18 20 if (!(properties instanceof Object)) 19 21 throw new Error("properties must be an object, was: " + properties);