-
-
Save Raynos/cb7b143016420468bf41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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