Closed yoshuawuyts closed 9 years ago
Thanks! I tried this same thing yesterday and it causes a weird issue where this.element.toString()
also called this.render()
again for some reason. Simply renaming toString()
to toHTML()
fixed it but I wanted to find out why that was occurring.
Dug into this a bit and it appears to be var document = require('global/document')
which on the server shims min-document. Which in turn calls the toString()
of the element itself thus creating an infinite loop. Still working on a fix...
:tada: neat!
wip. Closes https://github.com/shama/base-element/issues/5. Needs tests + docs added. Mostly checking if this is the correct interface. Thanks!
Changes
.toString()
method which returns stringified html