Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: third_party/pkg/angular/lib/core_dom/directive.dart

Issue 176943008: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}
/**

Powered by Google App Engine
This is Rietveld 408576698