Skip to content

Commit

Permalink
name attribute is also set now when specified via :name option when a…
Browse files Browse the repository at this point in the history
…dded to container [1:resolved]
  • Loading branch information
bakkdoor committed Nov 5, 2008
1 parent be10b09 commit 3e57fdc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/rswing/components/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ def add(component, options = {})
# if :name given, add with name
if(name = Options.value_for(options => :name))
self.add_with_name(component, name)
# also set components name attribute, if specified
component.name = name.to_s
end

component # return component
Expand Down

0 comments on commit 3e57fdc

Please sign in to comment.