Skip to content

Commit

Permalink
[BUGFIX #484] ensure transactions are always.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed May 24, 2017
1 parent 5c2cdc6 commit ca4ea9e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/@glimmer/runtime/lib/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,11 @@ export abstract class Environment {
}

commit() {
this.transaction.commit();
this._transaction = null;
try {
this.transaction.commit();
} finally {
this._transaction = null;
}
}

attributeFor(element: Simple.Element, attr: string, isTrusting: boolean, namespace?: string): AttributeManager {
Expand Down

0 comments on commit ca4ea9e

Please sign in to comment.