mirror of
https://github.com/github/rails.git
synced 2026-01-30 16:58:15 -05:00
Ruby 1.9 compat: javascript proxy. References #1689 [Frederick Cheung]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8493 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -1066,6 +1066,11 @@ module ActionView
|
||||
|
||||
# Converts chained method calls on DOM proxy elements into JavaScript chains
|
||||
class JavaScriptProxy < BasicObject #:nodoc:
|
||||
if ::RUBY_VERSION >= '1.9'
|
||||
undef_method :==
|
||||
undef_method :equal?
|
||||
end
|
||||
|
||||
def initialize(generator, root = nil)
|
||||
@generator = generator
|
||||
@generator << root if root
|
||||
|
||||
Reference in New Issue
Block a user