Sha256: e321ae59c653a567169a3047c66bbf19ff88ce9b1b4d6da8523249fdbfed7384

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

require 'opal-jquery/element'

Document = Element.find(`document`)

class << Document
  def ready?(&block)
    `$(#{ block })` if block
  end

  def title
    `document.title`
  end

  def title=(title)
    `document.title = #{title}`
  end
end

# TODO: this will be removed soon (here for compatibility)
$document = Document

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
opal-jquery-0.1.2 opal/opal-jquery/document.rb
opal-jquery-0.1.1 opal/opal-jquery/document.rb
opal-jquery-0.1.0 opal/opal-jquery/document.rb
opal-jquery-0.0.13 opal/opal-jquery/document.rb
opal-jquery-0.0.12 opal/opal-jquery/document.rb