feat(view_pool): adds a view pool of dehydrated views per protoview.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user