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

Unified Diff: pkg/web_components/lib/polyfill.dart

Issue 617413002: update customElementsTakeRecords (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix link in changelog Created 6 years, 3 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 | « pkg/web_components/lib/platform.concat.js.map ('k') | pkg/web_components/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/web_components/lib/polyfill.dart
diff --git a/pkg/web_components/lib/polyfill.dart b/pkg/web_components/lib/polyfill.dart
index a141c4d60860ca170e31a6e0c140e83bca5a85de..6e7bbd95e7acfa214a3362bbc79f297849bc032a 100644
--- a/pkg/web_components/lib/polyfill.dart
+++ b/pkg/web_components/lib/polyfill.dart
@@ -54,9 +54,8 @@ bool get _isReady {
* This method can be used to resolve differences in timing between native and
* polyfilled custom elements.
*/
-void customElementsTakeRecords() {
+void customElementsTakeRecords([Node node]) {
var customElements = js.context['CustomElements'];
- if (customElements != null) {
- customElements.callMethod('takeRecords');
- }
+ if (customElements == null) return;
+ customElements.callMethod('takeRecords', [node]);
}
« no previous file with comments | « pkg/web_components/lib/platform.concat.js.map ('k') | pkg/web_components/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698