Permalink
Browse files

feat(entity): Added .isClean() method

  • Loading branch information...
RWOverdijk committed Dec 28, 2015
1 parent b333f25 commit 46b499c9ab56303ffe0572369fa024a60cc4537d
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/entity.js
@@ -83,6 +83,15 @@ export class Entity {
return this;
}
/**
* Return if the entity is clean.
*
* @return {boolean}
*/
isClean() {
return this.__cleanValues === this.asJson(true);
}
/**
* Persist the changes made to this entity to the server.
*

0 comments on commit 46b499c

Please sign in to comment.