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

"Cannot read property 'children' of undefined" if static file have no dom #159

Open
wlekin opened this issue May 10, 2017 · 1 comment
Open

Comments

@wlekin
Copy link

wlekin commented May 10, 2017

i want to response plain string from a static file for ssl verify, however
virtual ( in \node_modules\blocks\node\blocks-node.js:11829:51 ) is null if static file have no dom, its a bug or i mess something up?

_setContents: function (contents) {
      var _this = this;
      var virtual = blocks.first(parseToVirtual(contents), function (child) {
        return VirtualElement.Is(child);
      });
      this._contents = contents;
      this._elementsById = getElementsById(virtual.children());
      findPageScripts(virtual, this._options.static, function (scripts) {
        _this._scripts = scripts;
        _this._initialized = true;
      });
    },
@Kanaye
Copy link
Collaborator

Kanaye commented May 10, 2017

Hi @wlekin,
can you provide some more information about the problem ?
An example of how you 're including the file would be great.

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

No branches or pull requests

2 participants