Sha256: 6f5718367a299fd4c87128ae6fd56a089ab52ab27b8d575f45f3ada713ec7e1b
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 Bytes
Contents
require 'browser' Document.ready? do puts "testing events" Document.add_listener :click do |evt| puts "in listener" puts evt end puts "testing Request" req = Request.new puts req req.on :success do puts "handler success!" end req.on :failure do puts "handler failure!" end req.on :complete do puts "handler complete!" end req.send :url => "javascripts/browser_demo.js" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.2.2 | demos/apps/browser_demo/lib/browser_demo.rb |
opal-0.2.0 | demos/apps/browser_demo/lib/browser_demo.rb |
opal-0.1.0 | demos/apps/browser_demo/lib/browser_demo.rb |