Skip to content

Commit 3299ba3

Browse files
committedOct 24, 2013
Use self (instead of this) for obj reference in all super calls
1 parent c510d49 commit 3299ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎lib/opal/nodes/super.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def compile_dispatcher
2121
class_name = scope.parent.name || 'self._klass._proto'
2222

2323
if scope.defs
24-
push "$opal.find_super_dispatcher(this, '#{scope.mid.to_s}', #{scope_name}, "
24+
push "$opal.find_super_dispatcher(self, '#{scope.mid.to_s}', #{scope_name}, "
2525
push iter
2626
push ", #{class_name})"
2727
else

0 commit comments

Comments
 (0)
Please sign in to comment.