| Index: third_party/pkg/angular/lib/core_dom/directive.dart
|
| diff --git a/third_party/pkg/angular/lib/core_dom/directive.dart b/third_party/pkg/angular/lib/core_dom/directive.dart
|
| index 647f954eaf496907abb219bf997a8bcbf8d284d1..1a8bfada6bb168cf0c38559180a31bffbbe5fe55 100644
|
| --- a/third_party/pkg/angular/lib/core_dom/directive.dart
|
| +++ b/third_party/pkg/angular/lib/core_dom/directive.dart
|
| @@ -6,13 +6,6 @@ part of angular.core.dom;
|
| typedef AttributeChanged(String newValue);
|
|
|
| /**
|
| - * Callback function used to notify of text changes.
|
| - */
|
| -abstract class TextChangeListener{
|
| - call(String text);
|
| -}
|
| -
|
| -/**
|
| * NodeAttrs is a facade for element attributes. The facade is responsible
|
| * for normalizing attribute names as well as allowing access to the
|
| * value of the directive.
|
| @@ -25,14 +18,13 @@ class NodeAttrs {
|
| NodeAttrs(this.element);
|
|
|
| operator [](String attributeName) =>
|
| - element.attributes[snakecase(attributeName, '-')];
|
| + element.attributes[attributeName];
|
|
|
| operator []=(String attributeName, String value) {
|
| - var snakeName = snakecase(attributeName, '-');
|
| if (value == null) {
|
| - element.attributes.remove(snakeName);
|
| + element.attributes.remove(attributeName);
|
| } else {
|
| - element.attributes[snakeName] = value;
|
| + element.attributes[attributeName] = value;
|
| }
|
| if (_observers != null && _observers.containsKey(attributeName)) {
|
| _observers[attributeName].forEach((fn) => fn(value));
|
| @@ -56,14 +48,14 @@ class NodeAttrs {
|
| }
|
|
|
| void forEach(void f(String k, String v)) {
|
| - element.attributes.forEach((k, v) => f(camelcase(k), v));
|
| + element.attributes.forEach(f);
|
| }
|
|
|
| bool containsKey(String attributeName) =>
|
| - element.attributes.containsKey(snakecase(attributeName, '-'));
|
| + element.attributes.containsKey(attributeName);
|
|
|
| Iterable<String> get keys =>
|
| - element.attributes.keys.map((name) => camelcase(name));
|
| + element.attributes.keys;
|
| }
|
|
|
| /**
|
|
|