Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
10 lines (8 sloc) 278 Bytes
{render} = require 'dio.js'
z = require './z'
# BREAKING: render does not replace the element any more, only appends children
# BRAKING: order of arguments
module.exports = (tree, $$root) ->
if tree.render? or tree.prototype?.render?
tree = z tree
render tree, $$root