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

Unified Diff: lib/runtime/dart/html_common.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/html.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html_common.js
diff --git a/lib/runtime/dart/html_common.js b/lib/runtime/dart/html_common.js
index 7242f6d7b0f3600dbf18e6b51bc280a8a4a2ad96..df9c8edc287eeb352b93a419a4f3c46368733604 100644
--- a/lib/runtime/dart/html_common.js
+++ b/lib/runtime/dart/html_common.js
@@ -105,14 +105,14 @@ dart_library.library('dart/html_common', null, /* Imports */[
return result;
}
addAll(iterable) {
- this.modify(dart.fn((s => s.addAll(iterable[dartx.map](dart.bind(this, _validateToken)))).bind(this), dart.void, [core.Set$(core.String)]));
+ this.modify(dart.fn(s => s.addAll(iterable[dartx.map](dart.bind(this, _validateToken))), dart.void, [core.Set$(core.String)]));
}
removeAll(iterable) {
- this.modify(dart.fn((s => s.removeAll(iterable[dartx.map](dart.as(dart.bind(this, _validateToken), __CastType0)))).bind(this), dart.void, [core.Set$(core.String)]));
+ this.modify(dart.fn(s => s.removeAll(iterable[dartx.map](dart.as(dart.bind(this, _validateToken), __CastType0))), dart.void, [core.Set$(core.String)]));
}
toggleAll(iterable, shouldAdd) {
if (shouldAdd === void 0) shouldAdd = null;
- iterable[dartx.forEach](dart.fn((e => this.toggle(e, shouldAdd)).bind(this), core.bool, [core.String]));
+ iterable[dartx.forEach](dart.fn(e => this.toggle(e, shouldAdd), core.bool, [core.String]));
}
retainAll(iterable) {
this.modify(dart.fn(s => s.retainAll(iterable), dart.void, [core.Set$(core.String)]));
@@ -315,9 +315,9 @@ dart_library.library('dart/html_common', null, /* Imports */[
if (copy != null) return copy;
copy = this.newJsMap();
this.writeSlot(slot, copy);
- e.forEach(dart.fn(((key, value) => {
+ e.forEach(dart.fn((key, value) => {
this.putIntoMap(copy, key, this.walk(value));
- }).bind(this), dart.void, [dart.dynamic, dart.dynamic]));
+ }, dart.void, [dart.dynamic, dart.dynamic]));
return copy;
}
if (dart.is(e, core.List)) {
@@ -397,7 +397,7 @@ dart_library.library('dart/html_common', null, /* Imports */[
if (copy != null) return copy;
copy = dart.map();
this.writeSlot(slot, copy);
- this.forEachJsField(e, dart.fn(((key, value) => dart.dsetindex(copy, key, this.walk(value))).bind(this)));
+ this.forEachJsField(e, dart.fn((key, value) => dart.dsetindex(copy, key, this.walk(value))));
return copy;
}
if (dart.notNull(isJavaScriptArray(e))) {
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/runtime/dart/isolate.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698