Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

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  
    10661066 
    10671067    # Converts chained method calls on DOM proxy elements into JavaScript chains  
    10681068    class JavaScriptProxy < BasicObject #:nodoc: 
     1069      if ::RUBY_VERSION >= '1.9' 
     1070        undef_method :== 
     1071        undef_method :equal? 
     1072      end 
     1073     
    10691074      def initialize(generator, root = nil) 
    10701075        @generator = generator 
    10711076        @generator << root if root