lib/browser/delegate_native.rb in isomorfeus-preact-23.8.0.rc3 vs lib/browser/delegate_native.rb in isomorfeus-preact-23.9.0.rc1

- old
+ new

@@ -47,10 +47,16 @@ value = a; } else if (value instanceof HTMLElement || value instanceof SVGElement) { value = #{Browser::Element.new(`value`)}; } else if (value instanceof Event) { value = #{Browser::Event.new(`value`)}; + } else if (value instanceof FileList) { + value = #{Browser::FileList.new(`value`)}; + } else if (value instanceof File) { + value = #{Browser::File.new(`value`)}; + } else if (value instanceof FileReader) { + value = #{Browser::FileReader.new(`value`)} } else if (value === null || type === 'undefined' || (type === 'number' && isNaN(value))) { value = nil; } return value; } catch { return value; } @@ -77,8 +83,12 @@ camel_cased_message = 'is' + camel_cased_message[0].toUpperCase() + camel_cased_message.substring(0, camel_cased_message.length - 1); } } return camel_cased_message } + end + + def to_n + @native end end end