Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created January 25, 2013 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/cb7b143016420468bf41 to your computer and use it in GitHub Desktop.
Save Raynos/cb7b143016420468bf41 to your computer and use it in GitHub Desktop.
var append = require("insert/append")
// just works
append(oneElem, otherElem)
// also just works
var widget = append(otherElem, Widget(...))
// it's really to safe the boilerplate of
function () {
var widget = Widget(...)
append(someElem, widget.view)
return widget
}
// With widget support it's
function () {
return append(someElem, Widget(...))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment