Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Running on elements not included in the DOM #204

Open
David-Mulder opened this issue Nov 17, 2014 · 0 comments
Open

Running on elements not included in the DOM #204

David-Mulder opened this issue Nov 17, 2014 · 0 comments

Comments

@David-Mulder
Copy link

So, first of all, I am probably doing something wrong, if not I must have encounted a bug. To be honest I have no idea which one it is, I would expect the following to work:

 a = document.createElement("template");
 a.innerHTML = "{{a}}";
 a.model = { a: 'Sam' };
 Platform.performMicrotaskCheckpoint();
 a.innerHTML; //just to return it if you run from console

Sadly though none of my attempts have succeeded. (And if you wonder why I need it, I just need some extra control over something to prevent wasting a lot of resources on out of screen elements).

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

No branches or pull requests

1 participant