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

Unified Diff: lib/runtime/dart/html.js

Issue 1643523008: fix #43, remove => workaround (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/html_common.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html.js
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js
index 1495e6ebeaddfb5a9590a6d356ab0020f3519503..71c674cbd89dc70b8f3fcb07d99ce5fbb158a0e8 100644
--- a/lib/runtime/dart/html.js
+++ b/lib/runtime/dart/html.js
@@ -9536,9 +9536,9 @@ dart_library.library('dart/html', null, /* Imports */[
this[_element] = element;
}
addAll(other) {
- other.forEach(dart.fn(((k, v) => {
+ other.forEach(dart.fn((k, v) => {
this.set(k, v);
- }).bind(this), dart.void, [core.String, core.String]));
+ }, dart.void, [core.String, core.String]));
}
containsValue(value) {
for (let v of this.values) {
@@ -9686,9 +9686,9 @@ dart_library.library('dart/html', null, /* Imports */[
this[_attributes] = attributes;
}
addAll(other) {
- other.forEach(dart.fn(((k, v) => {
+ other.forEach(dart.fn((k, v) => {
this.set(k, v);
- }).bind(this), dart.void, [core.String, core.String]));
+ }, dart.void, [core.String, core.String]));
}
containsValue(value) {
return this.values[dartx.any](dart.fn(v => dart.equals(v, value), core.bool, [core.String]));
@@ -9715,28 +9715,28 @@ dart_library.library('dart/html', null, /* Imports */[
}
}
forEach(f) {
- this[_attributes].forEach(dart.fn(((key, value) => {
+ this[_attributes].forEach(dart.fn((key, value) => {
if (dart.notNull(this[_matches](key))) {
f(this[_strip](key), value);
}
- }).bind(this), dart.void, [core.String, core.String]));
+ }, dart.void, [core.String, core.String]));
}
get keys() {
let keys = core.List$(core.String).new();
- this[_attributes].forEach(dart.fn(((key, value) => {
+ this[_attributes].forEach(dart.fn((key, value) => {
if (dart.notNull(this[_matches](key))) {
keys[dartx.add](this[_strip](key));
}
- }).bind(this), dart.void, [core.String, core.String]));
+ }, dart.void, [core.String, core.String]));
return keys;
}
get values() {
let values = core.List$(core.String).new();
- this[_attributes].forEach(dart.fn(((key, value) => {
+ this[_attributes].forEach(dart.fn((key, value) => {
if (dart.notNull(this[_matches](key))) {
values[dartx.add](value);
}
- }).bind(this), dart.void, [core.String, core.String]));
+ }, dart.void, [core.String, core.String]));
return values;
}
get length() {
@@ -10914,7 +10914,7 @@ dart_library.library('dart/html', null, /* Imports */[
add(stream) {
dart.as(stream, async.Stream$(T));
if (dart.notNull(this[_subscriptions].containsKey(stream))) return;
- this[_subscriptions].set(stream, stream.listen(dart.bind(this[_controller], 'add'), {onError: dart.bind(this[_controller], 'addError'), onDone: dart.fn((() => this.remove(stream)).bind(this), dart.void, [])}));
+ this[_subscriptions].set(stream, stream.listen(dart.bind(this[_controller], 'add'), {onError: dart.bind(this[_controller], 'addError'), onDone: dart.fn(() => this.remove(stream), dart.void, [])}));
}
remove(stream) {
dart.as(stream, async.Stream$(T));
« no previous file with comments | « lib/runtime/dart/convert.js ('k') | lib/runtime/dart/html_common.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698