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-jquery
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 61249edecc7a
Choose a base ref
...
head repository: opal/opal-jquery
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dfdeedc86a88
Choose a head ref
  • 3 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 17, 2013

  1. Add .get()

    Arcovion committed Nov 17, 2013
    Copy the full SHA
    7119947 View commit details
  2. Copy the full SHA
    b747085 View commit details

Commits on Nov 18, 2013

  1. Merge pull request #30 from Arcovion/master

    .get(), .prop(), .attr() & more
    elia committed Nov 18, 2013
    Copy the full SHA
    dfdeedc View commit details
Showing with 2 additions and 1 deletion.
  1. +2 −1 opal/opal-jquery/element.rb
3 changes: 2 additions & 1 deletion opal/opal-jquery/element.rb
Original file line number Diff line number Diff line change
@@ -63,6 +63,7 @@ def self.expose(*methods)
expose :focus, :find, :next, :siblings, :text, :trigger, :append
expose :height, :width, :serialize, :is, :filter, :last, :first
expose :wrap, :stop, :clone, :empty
expose :get, :attr, :prop

# We alias some jquery methods to common ruby method names.
alias succ next
@@ -91,7 +92,7 @@ def self.expose(*methods)
def to_n
self
end

def [](name)
`self.attr(name) || ""`
end