feat(view_pool): adds a view pool of dehydrated views per protoview.

This commit is contained in:
Rado Kirov
2015-02-06 17:03:40 -08:00
parent 617206bd1c
commit 7bf5ab8f43
9 changed files with 118 additions and 3 deletions
@@ -110,6 +110,7 @@ class ListWrapper {
list.remove(items[i]);
}
}
static removeLast(List list) => list.removeLast();
static bool remove(List list, item) => list.remove(item);
static void clear(List l) {
l.clear();
@@ -149,6 +149,9 @@ export class ListWrapper {
list.splice(index, 1);
}
}
static removeLast(list:List) {
return list.pop();
}
static remove(list, el): boolean {
var index = list.indexOf(el);
if (index > -1) {