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: 6c53f8d52ed1
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: 5bcc9a8127d6
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Aug 30, 2014

  1. interval: add #call

    meh committed Aug 30, 2014
    Copy the full SHA
    06fd394 View commit details

Commits on Sep 2, 2014

  1. dom/node_set: add #to_ary

    meh committed Sep 2, 2014
    Copy the full SHA
    5bcc9a8 View commit details
Showing with 9 additions and 0 deletions.
  1. +4 −0 opal/browser/dom/node_set.rb
  2. +5 −0 opal/browser/interval.rb
4 changes: 4 additions & 0 deletions opal/browser/dom/node_set.rb
Original file line number Diff line number Diff line change
@@ -101,6 +101,10 @@ def xpath(path)
node.xpath(path)
}]
end

def to_ary
@literal
end
end

end; end
5 changes: 5 additions & 0 deletions opal/browser/interval.rb
Original file line number Diff line number Diff line change
@@ -58,6 +58,11 @@ def start

@id = `#@window.setInterval(#{@block.to_n}, #@every * 1000)`
end

# Call the [Interval] block.
def call
@block.call
end
end

class Window