Emits a jQuery script, inside its own script tag, that is to be run on document ready or load.
Usage (from inside a widget method):
a jquery ready handler
a jquery ready handler, with attributes in the script tag
a jquery load handler
# File lib/erector/jquery.rb, line 10 def jquery(*args) event = if args.first.is_a? Symbol args.shift else :ready end txt = args.shift attributes = args.shift || {} javascript attributes do rawtext "\n" rawtext "jQuery(document).#{event}(function($){\n" rawtext txt rawtext "\n});" end end