Sha256: 3d3fc942b81c98f00bd773f5f5d90e9a611291e87f6182b8997b488acb6cbc91
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 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 def head Element.find(`document.head`) end def body Element.find(`document.body`) end end # TODO: this will be removed soon (here for compatibility) $document = Document
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-jquery-0.2.0 | opal/opal-jquery/document.rb |