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

Unified Diff: pkg/shadow_dom/lib/shadow_dom.debug.js

Issue 24096027: Dart2js support for custom element lifecycle events (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for IE support Created 7 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
Index: pkg/shadow_dom/lib/shadow_dom.debug.js
diff --git a/pkg/shadow_dom/lib/shadow_dom.debug.js b/pkg/shadow_dom/lib/shadow_dom.debug.js
index b889a5ef7641e88b18def663b474fd422bcafc32..c96a6a469feb71542ebd34a59ad0dbfc810a3dd0 100644
--- a/pkg/shadow_dom/lib/shadow_dom.debug.js
+++ b/pkg/shadow_dom/lib/shadow_dom.debug.js
@@ -1,5 +1,4 @@
-if ((!HTMLElement.prototype.createShadowRoot &&
- !HTMLElement.prototype.webkitCreateShadowRoot) ||
+if ((!HTMLElement.prototype.createShadowRoot) ||
window.__forceShadowDomPolyfill) {
/*
@@ -5135,8 +5134,10 @@ var ShadowDOMPolyfill = {};
// TODO(jmesserly): do we still need these?
if (obj instanceof NodeList) return 'NodeList';
if (obj instanceof ShadowRoot) return 'ShadowRoot';
- if (obj instanceof MutationRecord) return 'MutationRecord';
- if (obj instanceof MutationObserver) return 'MutationObserver';
+ if (window.MutationRecord && (obj instanceof MutationRecord))
blois 2013/09/20 23:27:36 Note that I can't get the build tool to run (can't
+ return 'MutationRecord';
+ if (window.MutationObserver && (obj instanceof MutationObserver))
+ return 'MutationObserver';
var unwrapped = unwrapIfNeeded(obj);
if (obj !== unwrapped) {
@@ -5688,4 +5689,4 @@ scope.ShadowCSS = ShadowCSS;
scope.ShadowCSS.shimShadowDOMStyling2 = shimShadowDOMStyling2;
})(window.Platform);
-}
+}
« no previous file with comments | « pkg/custom_element/lib/custom-elements.min.js ('k') | pkg/shadow_dom/lib/src/platform/patches-shadowdom-polyfill.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698