Sha256: ef6576b4db1d2d8659557fbc8697819f9c0f3829c89d4663a4a2ff07e9effa80

Contents?: true

Size: 392 Bytes

Versions: 1

Compression:

Stored size: 392 Bytes

Contents

require 'opal-jquery/element'

$document = Element.find(`document`)

class << $document
  def ready?(&block)
    %x{
      if (block === nil) {
        return nil;
      }

      $(block);
      return nil;
    }
  end

  def title
    `document.title`
  end

  def title=(title)
    `document.title = title`
  end
end

# Document is depreceated, use $document instead.
Document = $document

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-jquery-0.0.8 opal/opal-jquery/document.rb