Skip to content

Commit

Permalink
fix(repeat): throw on non-repeatable expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktim committed Mar 7, 2016
1 parent d38f77c commit 1d7bbcc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/repeat.js
Expand Up @@ -120,6 +120,9 @@ export class Repeat {

let items = this.items;
this.strategy = this.strategyLocator.getStrategy(items);
if (!this.strategy) {
throw new Error(`Value for '${this.sourceExpression}' is non-repeatable`);
}

if (!this.isOneTime && !this._observeInnerCollection()) {
this._observeCollection();
Expand Down

0 comments on commit 1d7bbcc

Please sign in to comment.