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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f70013f26131
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 36b72e274c20
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 20, 2013

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e44b1a1 View commit details
  2. Copy the full SHA
    36b72e2 View commit details
Showing with 2 additions and 2 deletions.
  1. +1 −1 opal/core/method.rb
  2. +1 −1 opal/core/module.rb
2 changes: 1 addition & 1 deletion opal/core/method.rb
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ def call(*args, &block)
%x{
#@method._p = block;
return #@method.apply(#@object, args);
return #@method.apply(#@receiver, args);
}
end

2 changes: 1 addition & 1 deletion opal/core/module.rb
Original file line number Diff line number Diff line change
@@ -262,7 +262,7 @@ def const_set(name, value)
def define_method(name, method = undefined, &block)
%x{
if (method) {
block = method;
block = #{method.to_proc};
}
if (block === nil) {