opal/browser/dom/element.rb in opal-browser-0.3.0 vs opal/browser/dom/element.rb in opal-browser-0.3.1

- old
+ new

@@ -352,12 +352,11 @@ `#@native.id = #{value.to_s}` end # Set the inner DOM of the element using the {Builder}. def inner_dom(builder=nil, &block) - clear - - self << Builder.new(document, builder, &block).to_a + self.inner_dom = Builder.new(document, builder, &block).to_a + self end # Set the inner DOM with the given node. # # (see #append_child)