Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Polymer.dart Support #7

Closed
felixc opened this issue Sep 11, 2015 · 2 comments
Closed

Polymer.dart Support #7

felixc opened this issue Sep 11, 2015 · 2 comments

Comments

@felixc
Copy link

felixc commented Sep 11, 2015

It would be wonderful if the developer tools supported Polymer.dart as well as Polymer.js; either natively in Dartium, or, more likely, though dart2js compiled code in Chrome.

Currently when attempting to use the extension on a Polymer.dart (transpiled to JS) site, I get a stack trace in the Console, and the page fails to load at all:

Uncaught TypeError: Cannot assign to read only property 'createdCallback' of #<HTMLElement>
    document.registerElement @ VM793:2128
    registerElement @ interop_support.js:64
    dart._registerCustomElement @ html_dart2js.dart:40049
    dart.PolymerDeclaration.registerType$1 @ html_dart2js.dart:18101
    dart._hookJsPolymer_registerDart_closure.call$0 @ declaration.dart:128
    dart._RootZone.run$1 @ zone.dart:1161
    dart._hookJsPolymer_registerDart.call$3 @ loader.dart:86
    dart.Primitives_applyFunctionWithPositionalArguments @ js_helper.dart:1386
    dart._callDartFunction @ js_helper.dart:1347
    (anonymous function) @ js_dart2js.dart:103
    d._register @ polymer.min.js:14
    f.flush @ polymer.min.js:14
    f.ready @ polymer.min.js:14
    f.check @ polymer.min.js:14
    (anonymous function) @ polymer.min.js:14
    n @ webcomponents.min.js:14
    i @ webcomponents.min.js:14
    (anonymous function) @ webcomponents.min.js:14
    r @ webcomponents.min.js:14
    t @ webcomponents.min.js:14
    (anonymous function) @ polymer.min.js:14
    c @ polymer.min.js:13
    run @ VM793:118
    zoneBoundFn @ VM793:91
@justinfagnani
Copy link
Contributor

I think this can be fixed by using Object.defineProperty to rewrite callbacks rather than property assignment.

@rictic
Copy link
Contributor

rictic commented Nov 18, 2016

As of v0.0.7 we support all web components code, not just Polymer (js). Please file a bug if this is still an issue.

@rictic rictic closed this as completed Nov 18, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants