diff --git a/lib/shenmegui/controls.rb b/lib/shenmegui/controls.rb index c2fc963..db739c0 100644 --- a/lib/shenmegui/controls.rb +++ b/lib/shenmegui/controls.rb @@ -80,7 +80,7 @@ def sync_events end def initialize(params={}) - @properties = self.class.default_properties || {} + @properties = self.class.default_properties ? self.class.default_properties.dup : {} update_properties(params) @id = ShenmeGUI.elements.size ShenmeGUI.elements << self diff --git a/shenmegui.gemspec b/shenmegui.gemspec index 8268a38..58cec5b 100644 --- a/shenmegui.gemspec +++ b/shenmegui.gemspec @@ -1,7 +1,7 @@ Gem::Specification.new do |s| s.name = 'shenmegui' - s.version = '0.3.5' - s.date = '2015-04-23' + s.version = '0.3.6' + s.date = '2015-07-02' s.summary = "什么鬼!" s.description = "a simple HTML GUI for Ruby" s.authors = ["CicholGricenchos"]