./make-window/make-window
Exports a function that window called, returns an object that looks like a window
.
makeWindow()
Creates a document and places it, along with other common browser globals, on a new object and then returns that object.
var makeWindow = require("can-vdom/make-window/make-window");
makeWindow();
window.document.body //-> Node
makeWindow(global)
Creates a document and places it, along with other common browser globals, on the global
object.
var makeWindow = require("can-vdom/make-window/make-window");
var window = makeWindow({});
Parameters
- global
{window}
:An object that represents the environment's global.