Skip to content
Snippets Groups Projects
Commit f2398447 authored by Lyle Johnson's avatar Lyle Johnson
Browse files

Added a fix for connect() in Ruby 1.9 (see RubyForge Bug #23787)

parent 70fd820a
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ module Responder
# Return the array of (selector -> func) associations
def messageMap
unless instance_variables.include? "@assocs"
unless instance_variables.include?("@assocs") || instance_variables.include?(:@assocs)
@assocs = []
end
@assocs
......
......@@ -104,7 +104,7 @@ module Responder2
# message data).
#
def connect(message_type, callable_object=nil, &block)
unless instance_variables.include?('@pseudoTarget')
unless instance_variables.include?('@pseudoTarget') || instance_variables.include?(:@pseudoTarget)
@pseudoTarget = Fox::FXPseudoTarget.new
self.target = @pseudoTarget
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment