Skip to content

Commit

Permalink
fix(array-virtual-repeat-array-strategy): support iterating custom el…
Browse files Browse the repository at this point in the history
…ements

This is a temporary fix in order to support iterating custom elements. View life cycle is not handled and support for that should be added later on.
  • Loading branch information
martingust committed Feb 2, 2016
1 parent f7ef97b commit 6381eb2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/array-virtual-repeat-strategy.js
Expand Up @@ -18,15 +18,6 @@ export class ArrayVirtualRepeatStrategy extends ArrayRepeatStrategy {
* @param items The new array instance.
*/
instanceChanged(repeat, items) {
if (repeat.viewsRequireLifecycle) {
let removePromise = repeat.viewSlot.removeAll(true);
if (removePromise instanceof Promise) {
removePromise.then(() => this._standardProcessInstanceChanged(repeat, items));
return;
}
this._standardProcessInstanceChanged(repeat, items);
return;
}
this._inPlaceProcessItems(repeat, items);
}

Expand Down Expand Up @@ -93,10 +84,6 @@ export class ArrayVirtualRepeatStrategy extends ArrayRepeatStrategy {
* @param splices Records of array changes.
*/
instanceMutated(repeat, array, splices) {
if (repeat.viewsRequireLifecycle) {
this._standardProcessInstanceMutated(repeat, array, splices);
return;
}
this._updateViews(repeat, repeat.items, splices);
}

Expand Down

0 comments on commit 6381eb2

Please sign in to comment.