Permalink
Browse files

feat(entity): Added .markClean() method

  • Loading branch information...
RWOverdijk committed Dec 28, 2015
1 parent 08fcef4 commit b333f25a502a56e2c40e8c548de0554a2bfb6b90
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/entity.js
@@ -72,6 +72,17 @@ export class Entity {
return this.__api.create(this.getResource(), this.asObject(true));
}
/**
* Mark this entity as clean, in its current state.
*
* @return {Entity}
*/
markClean() {
this.__cleanValues = this.asJson(true);
return this;
}
/**
* Persist the changes made to this entity to the server.
*

0 comments on commit b333f25

Please sign in to comment.