Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
Observable.reset -> Observable.discardChanges
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Dec 12, 2013
1 parent d0d18b7 commit 2c1061c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/TemplateBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@
// Called as a result ensureScheduled (above).
resolve: function() {
if (this.ifObserver) {
var ifValue = this.ifObserver.reset();
var ifValue = this.ifObserver.discardChanges();
if (!ifValue) {
this.valueChanged(); // remove any instances
return;
Expand All @@ -888,9 +888,9 @@

var iterateValue;
if (this.repeatObserver)
iterateValue = this.repeatObserver.reset();
iterateValue = this.repeatObserver.discardChanges();
else if (this.bindObserver)
iterateValue = [this.bindObserver.reset()];
iterateValue = [this.bindObserver.discardChanges()];

return this.valueChanged(iterateValue);
},
Expand Down

0 comments on commit 2c1061c

Please sign in to comment.