Sha256: 034dfedfce30f5a3456e5ff026212f6e0b34ed06822bddc7608826c48ec27622

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

module Browser; module DOM; class Document < Element

unless C.has? `document`, :defaultView
  if C.has? `document`, :parentWindow
    def window
      `#@native.parentWindow`
    end
  else
    def window
      raise NotImplementedError, 'window from document is unsupported'
    end
  end
end

end; end; end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-browser-0.1.0.beta1 opal/browser/compatibility/dom/document/window.rb