Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal-browser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7566410d94ac
Choose a base ref
...
head repository: opal/opal-browser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 02a913f7cf41
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on May 23, 2015

  1. Add Input#checked?

    jgaskins committed May 23, 2015
    Copy the full SHA
    4ab3547 View commit details
  2. Merge pull request #36 from jgaskins/add-input-checked

    Add Input#checked?
    meh committed May 23, 2015
    Copy the full SHA
    02a913f View commit details
Showing with 4 additions and 0 deletions.
  1. +4 −0 opal/browser/dom/element/input.rb
4 changes: 4 additions & 0 deletions opal/browser/dom/element/input.rb
Original file line number Diff line number Diff line change
@@ -16,6 +16,10 @@ def value=(value)
`#@native.value = #{value}`
end

def checked?
`#@native.checked`
end

def clear
`#@native.value = ''`
end