diff --git a/modules/angular2/src/dom/browser_adapter.dart b/modules/angular2/src/dom/browser_adapter.dart index bad37ab8ce..37bf545962 100644 --- a/modules/angular2/src/dom/browser_adapter.dart +++ b/modules/angular2/src/dom/browser_adapter.dart @@ -151,8 +151,9 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter { String tagName(Element element) => element.tagName; - Map attributeMap(Element element) => - element.attributes; + Map attributeMap(Element element) { + return new Map.from(element.attributes); + } String getAttribute(Element element, String attribute) => element.getAttribute(attribute);