Skip to content

Instantly share code, notes, and snippets.

@tjstankus
Created February 26, 2010 03:05
Show Gist options
  • Save tjstankus/315348 to your computer and use it in GitHub Desktop.
Save tjstankus/315348 to your computer and use it in GitHub Desktop.
def set(value)
if # ...
# code elided for clarity
elsif tag_name == 'input' and type == 'checkbox'
# node.toggle # => JS event not fired
node.click # => JS event fired
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment