Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit 2a9934e

Browse files
committed
Fix React::Element initializer arity check
1 parent 53759a3 commit 2a9934e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/react/element.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Element
2525

2626
attr_accessor :waiting_on_resources
2727

28-
def initialize(native_element, type, properties, block)
28+
def initialize(native_element, type = nil, properties = {}, block = nil)
2929
@type = type
3030
@properties = (`typeof #{properties} === 'undefined'` ? nil : properties) || {}
3131
@block = block

0 commit comments

Comments
 (0)