lib/browser/delegate_native.rb in isomorfeus-preact-10.6.57 vs lib/browser/delegate_native.rb in isomorfeus-preact-10.6.58

- old
+ new

@@ -34,10 +34,10 @@ for(let i=0; i<value.length; i++) { a[i] = #{Browser::Element.new(`value.item(i)`)}; } value = a; } else if (type === 'object' && (value instanceof HTMLElement)) { - value = #{Browser::Element.new(value)}; + value = #{Browser::Element.new(`value`)}; } else if (value === null || type === 'undefined' || (type === 'number' && isNaN(value))) { return nil; } return value; } catch { return value; }