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

Unified Diff: lib/polymer_element.dart

Issue 23095010: Fixed warning causing drone.io to fail (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Temporary workaround w/ TODO to remove" Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/polymer_element.dart
diff --git a/lib/polymer_element.dart b/lib/polymer_element.dart
index 76259d64692d420acc81a6d649c7721a83f425d5..e7d213566b1d0b03512ff290956acd99a995d748 100644
--- a/lib/polymer_element.dart
+++ b/lib/polymer_element.dart
@@ -174,7 +174,10 @@ class PolymerElement extends CustomElement with _EventsMixin {
* Using Polymer's platform/src/ShadowCSS.js passing the style tag's content.
*/
void _shimCss(ShadowRoot root, String localName, String extendsName) {
- var platform = js.context.Platform;
+ // TODO(terry): Remove warning, cast js.context to dynamic because of bug
+ // https://code.google.com/p/dart/issues/detail?id=6111. The
+ // js interop package will be patching this until bug is fixed.
+ var platform = (js.context as dynamic).Platform;
if (platform == null) return;
var shadowCss = platform.ShadowCSS;
if (shadowCss == null) return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698