diff options
Diffstat (limited to 'ext/tk/lib/tkextlib/blt/component.rb')
-rw-r--r-- | ext/tk/lib/tkextlib/blt/component.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tkextlib/blt/component.rb b/ext/tk/lib/tkextlib/blt/component.rb index 417c1d454b..8e36946d0b 100644 --- a/ext/tk/lib/tkextlib/blt/component.rb +++ b/ext/tk/lib/tkextlib/blt/component.rb @@ -899,7 +899,7 @@ module Tk::BLT end def _component_bind(target, tag, context, *args) - if TkComm._callback_entry?(args[0]) + if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new @@ -908,7 +908,7 @@ module Tk::BLT self end def _component_bind_append(target, tag, context, *args) - if TkComm._callback_entry?(args[0]) + if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new |