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

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelw committed Jan 14, 2014
1 parent bec956e commit b0d1fc9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/TemplateBinding.js
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,10 @@
deps.ifValue = processBinding(IF, directives.if, template, model);

// oneTime if & predicate is false. nothing else to do.
if (deps.ifOneTime && !deps.ifValue)
return this.updateIteratedValue();
if (deps.ifOneTime && !deps.ifValue) {
this.updateIteratedValue();
return;
}

if (!deps.ifOneTime)
deps.ifValue.open(this.updateIteratedValue, this);
Expand All @@ -834,8 +836,10 @@
var ifValue = this.deps.ifValue;
if (!this.deps.ifOneTime)
ifValue = ifValue.discardChanges();
if (!ifValue)
return this.valueChanged();
if (!ifValue) {
this.valueChanged();
return;
}
}

var value = this.deps.value;
Expand Down

0 comments on commit b0d1fc9

Please sign in to comment.