Skip to content

Commit f469e50

Browse files
committed
Fixed issue #44.
1 parent be78d28 commit f469e50

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

lib/av.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4528,6 +4528,30 @@
45284528
this._fetchWhenSave = enable;
45294529
},
45304530

4531+
/**
4532+
* Returns the object's objectId.
4533+
* @return {String} the objectId.
4534+
*/
4535+
getObjectId: function() {
4536+
return this.id;
4537+
},
4538+
4539+
/**
4540+
* Returns the object's createdAt attribute.
4541+
* @return {Date}
4542+
*/
4543+
getCreatedAt: function() {
4544+
return this.createdAt || this.get('createdAt');
4545+
},
4546+
4547+
/**
4548+
* Returns the object's updatedAt attribute.
4549+
* @return {Date}
4550+
*/
4551+
getUpdatedAt: function() {
4552+
return this.updatedAt || this.get('updatedAt');
4553+
},
4554+
45314555
/**
45324556
* Returns a JSON version of the object suitable for saving to AV.
45334557
* @return {Object}

0 commit comments

Comments
 (0)