refactor(forms): refactored forms to user Query to get html validators
This commit is contained in:
@ -184,6 +184,8 @@ class ListWrapper {
|
||||
|
||||
bool isListLikeIterable(obj) => obj is Iterable;
|
||||
|
||||
List<T> iterableToList(Iterable<T> ii) => ii.toList();
|
||||
|
||||
void iterateListLike(iter, fn(item)) {
|
||||
assert(iter is Iterable);
|
||||
for (var item in iter) {
|
||||
|
@ -253,7 +253,13 @@ export function iterateListLike(obj, fn: Function) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export function iterableToList<T>(ii:Iterable<T>):List<T> {
|
||||
var res = [];
|
||||
for (var i of ii) {
|
||||
res.push(i);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
// Safari and Internet Explorer do not support the iterable parameter to the
|
||||
// Set constructor. We work around that by manually adding the items.
|
||||
|
Reference in New Issue
Block a user