lib/react/element.rb in hyper-react-0.10.0 vs lib/react/element.rb in hyper-react-0.11.0
- old
+ new
@@ -23,10 +23,10 @@
attr_reader :properties
attr_reader :block
attr_accessor :waiting_on_resources
- def initialize(native_element, type, properties, block)
+ def initialize(native_element, type = nil, properties = {}, block = nil)
@type = type
@properties = (`typeof #{properties} === 'undefined'` ? nil : properties) || {}
@block = block
@native = native_element
end