Sha256: f258f8f61504a5e7f50018f4c1e406b47fdaa575afd712f19795b556778a7b7f
Contents?: true
Size: 426 Bytes
Versions: 4
Compression:
Stored size: 426 Bytes
Contents
require 'virtual_dom/virtual_node' require 'virtual_dom/virtual_text_node' require 'virtual_dom/node_factory' module VirtualDOM def virtual_dom(&block) NodeFactory.new(block, self).nodes.first end module_function def create(vnode) `virtualDom.create(#{vnode})` end def diff(old, new) `virtualDom.diff(#{old}, #{new})` end def patch(dom, diff) `virtualDom.patch(#{dom}, #{diff})` end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
opal-virtual-dom-0.0.5 | opal/virtual_dom.rb |
opal-virtual-dom-0.0.4 | opal/virtual_dom.rb |
opal-virtual-dom-0.0.3 | opal/virtual_dom.rb |
opal-virtual-dom-0.0.2 | opal/virtual_dom.rb |