Skip to content

Commit

Permalink
Use self (instead of this) for obj reference in all super calls
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 24, 2013
1 parent c510d49 commit 3299ba3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/opal/nodes/super.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def compile_dispatcher
class_name = scope.parent.name || 'self._klass._proto'

if scope.defs
push "$opal.find_super_dispatcher(this, '#{scope.mid.to_s}', #{scope_name}, "
push "$opal.find_super_dispatcher(self, '#{scope.mid.to_s}', #{scope_name}, "
push iter
push ", #{class_name})"
else
Expand Down

0 comments on commit 3299ba3

Please sign in to comment.