teacup 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/teacup/handler.rb +2 -2
- data/lib/teacup/version.rb +1 -1
- metadata +1 -1
data/lib/teacup/handler.rb
CHANGED
@@ -39,10 +39,10 @@ module Teacup
|
|
39
39
|
# note about `debug`: not all objects in this method are a UIView instance,
|
40
40
|
# so don't assume that the object *has* a debug method.
|
41
41
|
|
42
|
+
handled = false
|
42
43
|
target.class.ancestors.each do |ancestor|
|
43
|
-
handled = false
|
44
44
|
if Teacup.handlers[ancestor].has_key? key
|
45
|
-
NSLog "#{ancestor.name} is handling #{key} = #{value.inspect}"
|
45
|
+
NSLog "#{ancestor.name} is handling #{key} = #{value.inspect}" if target.respond_to? :debug and target.debug
|
46
46
|
Teacup.handlers[ancestor][key].call(target, value)
|
47
47
|
handled = true
|
48
48
|
break
|
data/lib/teacup/version.rb
CHANGED