Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify() error in examples #18

Open
emmaly opened this issue Jun 4, 2017 · 2 comments
Open

Notify() error in examples #18

emmaly opened this issue Jun 4, 2017 · 2 comments

Comments

@emmaly
Copy link
Contributor

emmaly commented Jun 4, 2017

The databind-struct example raises this error, below. Similar errors are raised in the notify and computed-property examples. The other examples run just fine, even though they also use Notify(), and I haven't figured out why.

Uncaught TypeError: Cannot read property 'testStruct' of undefined
    at HTMLElement._propertySetter (polymer.html:formatted:1405)
    at HTMLElement.setter (polymer.html:formatted:1495)
    at HTMLElement.set (polymer.html:formatted:2154)
    at Object.$packages.github.com/PalmStoneGames/polymer.BY.ptr.doNotify (proto.go:87)
    at Object.$packages.github.com/PalmStoneGames/polymer.BY.ptr.Notify (proto.go:82)
    at $b (main.go:30)
    at $goroutine (databind-struct.js:4)
    at $runScheduled (databind-struct.js:4)
    at $schedule (databind-struct.js:4)
    at $go (databind-struct.js:4)
    at Object.$packages.github.com/PalmStoneGames/polymer/examples/databind-struct.D.ptr.Created (main.go:24)
    at $b (callbacks.go:62)
    at HTMLElement.created (databind-struct.js:4)
    at HTMLElement.__initialize (polymer-micro.html:232)
    at HTMLElement.createdCallback (polymer-micro.html:217)
    at window.Polymer (polymer-micro.html:62)
    at CN (register.go:240)
    at CM (register.go:202)
    at v.$externalizeWrapper (databind-struct.js:4)
    at webcomponents-lite.min.js:12

My versions:

  • go version go1.8.3 linux/amd64
  • bower 1.8.0
  • nodejs v6.10.3
  • GopherJS 1.8-2 (commit 7cde3d36aea3e1b3be7827c4dcbe6bbae73d012e)
@emmaly
Copy link
Contributor Author

emmaly commented Jun 5, 2017

If in the databind-struct example I change t.Created() to be t.Ready() instead, it works fine. Is this expected? I'm going to proceed forward in my own code with the assumption that we want to reach Ready() before we try to do anything useful with the struct. I'm happy to update the examples as needed, but I want to be sure that I'm not hitting something unexpected.

@luna-duclos
Copy link

This sounds like something that might've changed within polymer perhaps ? You're welcome to update the examples

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants