Ticket #1689: remove_surplus_methods_from_javscript_proxy.diff
| File remove_surplus_methods_from_javscript_proxy.diff, 0.6 kB (added by fcheung, 6 months ago) |
|---|
-
actionpack/lib/action_view/helpers/prototype_helper.rb
old new 1066 1066 1067 1067 # Converts chained method calls on DOM proxy elements into JavaScript chains 1068 1068 class JavaScriptProxy < BasicObject #:nodoc: 1069 if ::RUBY_VERSION >= '1.9' 1070 undef_method :== 1071 undef_method :equal? 1072 end 1073 1069 1074 def initialize(generator, root = nil) 1070 1075 @generator = generator 1071 1076 @generator << root if root