Skip to content

Commit

Permalink
fix(array-virtual-repeat-strategy): update to work with latest templa…
Browse files Browse the repository at this point in the history
…ting-resources
  • Loading branch information
martingust committed Feb 4, 2016
1 parent c7a61ed commit 0b442c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/array-virtual-repeat-strategy.js
@@ -1,5 +1,5 @@
import {ArrayRepeatStrategy} from 'aurelia-templating-resources/array-repeat-strategy';
import {createFullOverrideContext, updateOverrideContexts, updateOverrideContext, refreshBinding} from 'aurelia-templating-resources/repeat-utilities';
import {createFullOverrideContext, updateOverrideContexts, updateOverrideContext, updateOneTimeBinding} from 'aurelia-templating-resources/repeat-utilities';

/**
* A strategy for repeating a template over an array.
Expand Down Expand Up @@ -57,14 +57,14 @@ export class ArrayVirtualRepeatStrategy extends ArrayRepeatStrategy {
view.overrideContext.$last = last;
let j = view.bindings.length;
while (j--) {
refreshBinding(view.bindings[j]);
updateOneTimeBinding(view.bindings[j]);
}
j = view.controllers.length;
while (j--) {
let k = view.controllers[j].boundProperties.length;
while (k--) {
let binding = view.controllers[j].boundProperties[k].binding;
refreshBinding(binding);
updateOneTimeBinding(binding);
}
}
}
Expand Down

0 comments on commit 0b442c1

Please sign in to comment.