teacup 0.3.3 → 0.3.4
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
@@ -42,13 +42,13 @@ module Teacup
|
|
42
42
|
target.class.ancestors.each do |ancestor|
|
43
43
|
handled = false
|
44
44
|
if Teacup.handlers[ancestor].has_key? key
|
45
|
-
NSLog "#{ancestor.name} is handling #{key} = #{value.inspect}" if target.respond_to? :debug and target.debug
|
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
|
49
49
|
end
|
50
|
-
return if handled
|
51
50
|
end
|
51
|
+
return if handled
|
52
52
|
|
53
53
|
# you can send methods to subviews (e.g. UIButton#titleLabel) and CALayers
|
54
54
|
# (e.g. UIView#layer) by assigning a hash to a style name.
|
data/lib/teacup/version.rb
CHANGED