lib/browser/delegate_native.rb in isomorfeus-preact-23.9.0.rc2 vs lib/browser/delegate_native.rb in isomorfeus-preact-23.9.0.rc3
- old
+ new
@@ -47,13 +47,9 @@
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;
}