Skip to content

Commit

Permalink
invalidate returns whether this is the first time it was called
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthropohedron committed Apr 7, 2015
1 parent b8cdaac commit 1b8db7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ Controller.prototype = {
},

invalidate: function() {
if (!this[" is valid "]) { return; }
if (!this[" is valid "]) { return false; }
this.observerService.removeObserver(this, "http-on-modify-request");
delete this[" is valid "];
return true;
}

};
Expand Down

0 comments on commit 1b8db7a

Please sign in to comment.