teacup 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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