diff options
Diffstat (limited to 'ext/tk/lib/tk.rb')
-rw-r--r-- | ext/tk/lib/tk.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 0394611172..18f398f2aa 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -5664,16 +5664,17 @@ module TkComposite def initialize(parent=nil, *args) @delegates = {} - @delegates['DEFAULT'] = @frame if parent.kind_of? Hash keys = _symbolkey2str(parent) parent = keys['parent'] keys['parent'] = @frame = TkFrame.new(parent) + @delegates['DEFAULT'] = @frame @path = @epath = @frame.path initialize_composite(keys) else @frame = TkFrame.new(parent) + @delegates['DEFAULT'] = @frame @path = @epath = @frame.path initialize_composite(*args) end |