(function(window) { var Gitana = window.Gitana; Gitana.AuditRecordMap = Gitana.AbstractMap.extend( /** @lends Gitana.AuditRecordMap.prototype */ { /** * @constructs * @augments Gitana.AbstractMap * * @class Map of audit record objects * * @param {Object} datastore * @param [Object] object */ constructor: function(datastore, object) { this.objectType = function() { return "Gitana.AuditRecordMap"; }; this.getDatastore = function() { return datastore; }; ////////////////////////////////////////////////////////////////////////////////////////////// // // CALL THROUGH TO BASE CLASS (at the end) // ////////////////////////////////////////////////////////////////////////////////////////////// this.base(datastore.getDriver(), object); }, /** * @override */ clone: function() { return this.getFactory().auditRecordMap(this.getDatastore(), this); }, /** * @param json */ buildObject: function(json) { return this.getFactory().auditRecord(this.getDatastore(), json); } }); })(window);