chore(analysis): analyze web folders; fix existing warnings

This commit is contained in:
Yegor Jbanov
2015-04-16 16:29:46 -07:00
parent f830cfca12
commit 3dc4df2ffa
17 changed files with 38 additions and 163 deletions

View File

@ -154,6 +154,11 @@ class ListWrapper {
static List slice(List l, int from, int to) {
return l.sublist(from, to);
}
static List splice(List l, int from, int to) {
var sub = l.sublist(from, to);
l.removeRange(from, to);
return sub;
}
static void sort(List l, compareFn(a,b)) {
l.sort(compareFn);
}

View File

@ -193,6 +193,9 @@ export class ListWrapper {
static slice(l:List, from:int, to:int):List {
return l.slice(from, to);
}
static splice(l:List, from:int, to:int):List {
return l.splice(from, to);
}
static sort(l:List, compareFn:Function) {
l.sort(compareFn);
}