Permalink
Browse files

feat(entity): Added .isDirty() method

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

0 comments on commit e2bb595

Please sign in to comment.