lib/opal/nodes/super.rb in opal-0.7.0.beta1 vs lib/opal/nodes/super.rb in opal-0.7.0.beta2

- old
+ new

@@ -19,22 +19,22 @@ scope.uses_block! scope_name = scope.identify! class_name = scope.parent.name ? "$#{scope.parent.name}" : 'self.$$class.$$proto' if scope.defs - push "$opal.find_super_dispatcher(self, '#{scope.mid.to_s}', #{scope_name}, " + push "Opal.find_super_dispatcher(self, '#{scope.mid.to_s}', #{scope_name}, " push iter push ", #{class_name})" else - push "$opal.find_super_dispatcher(self, '#{scope.mid.to_s}', #{scope_name}, " + push "Opal.find_super_dispatcher(self, '#{scope.mid.to_s}', #{scope_name}, " push iter push ")" end elsif scope.iter? chain, cur_defn, mid = scope.get_super_chain trys = chain.map { |c| "#{c}.$$def" }.join(' || ') - push "$opal.find_iter_super_dispatcher(self, #{mid}, (#{trys} || #{cur_defn}), null)" + push "Opal.find_iter_super_dispatcher(self, #{mid}, (#{trys} || #{cur_defn}), null)" else raise "Cannot call super() from outside a method block" end end