Changeset 8894
- Timestamp:
- 04/29/08 17:07:43 (5 months ago)
- Files:
-
- sandbox/minibase/trunk/demo/model.js (modified) (1 diff)
- sandbox/minibase/trunk/modules/helma/minibase.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/minibase/trunk/demo/model.js
r8893 r8894 27 27 and only settable on transient objects 28 28 */ 29 return new db.Storable(this, properties || {});29 return new db.Storable(this, properties); 30 30 } 31 31 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);