feat(CSSClass): support binding to classList

Closes #876
This commit is contained in:
Pawel Kozlowski
2015-03-26 17:51:08 +01:00
parent 48811cd805
commit aca4604879
5 changed files with 221 additions and 1 deletions
@@ -69,6 +69,9 @@ class StringMapWrapper {
static void set(Map map, key, value) {
map[key] = value;
}
static void delete(Map m, k) {
m.remove(k);
}
static void forEach(Map m, fn(v, k)) {
m.forEach((k, v) => fn(v, k));
}
@@ -62,6 +62,7 @@ export class StringMapWrapper {
}
return true;
}
static delete(map, key) { delete map[key]; }
static forEach(map, callback) {
for (var prop in map) {
if (map.hasOwnProperty(prop)) {