ApplicationInstance.BootOptions#document

documentDocumentpublic

Defined in packages/ember-application/lib/system/application-instance.js:399

If present, render into the given Document object instead of the global window.document object.

In practice, this is only useful in non-browser environment or in non-interactive mode, because Ember's jQuery dependency is implicitly bound to the current document, causing event delegation to not work properly when the app is rendered into a foreign document object (such as an iframe's contentDocument).

In non-browser mode, this could be a "Document-like" object as Ember only interact with a small subset of the DOM API in non- interactive mode. While the exact requirements have not yet been formalized, the SimpleDOM library's implementation is known to work.

Default: the global `document` object

doc_EmberJs
2016-11-30 16:48:30
Comments
Leave a Comment

Please login to continue.