Skip to content

Instantly share code, notes, and snippets.

@Raynos Raynos/x.js Secret
Last active Dec 11, 2015

What would you like to do?
append is widget aware and knows how to either append DOMElement's to a container
or append a widget to a container
`var widget = append(container, MyWidget(...))`
function append(container, widget) {
var elem = widget.view ? widget.view : widget
return widget
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.