Method: Browser::DOM::Document#window

Defined in:
opal/browser/dom/document.rb,
opal/browser/dom/document.rb,
opal/browser/dom/document.rb

#windowWindow (readonly)

Returns the window for the document.

Returns:

  • (Window)

    the window for the document

Raises:

  • (NotImplementedError)


143
144
145
# File 'opal/browser/dom/document.rb', line 143

def window
  Window.new(`#@native.defaultView`)
end