Skip to content

Instantly share code, notes, and snippets.

@necolas
Forked from danwrong/flight-groups.js
Last active August 29, 2015 14:01
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 necolas/0e3b39058d5593c45df7 to your computer and use it in GitHub Desktop.
Save necolas/0e3b39058d5593c45df7 to your computer and use it in GitHub Desktop.
var TweetBox = defineComponent(function() {
this.attributes({
charLimit: 140
withGeoControl: false;
});
if (withGeoControl === true) {
// attach to a sub node
this.child(GeoControl).attachTo('.GeoControl');
}
});
TweetBox.teardown();
var App = defineComponent(function () {
this.child(TweetBox).attachTo('.TweetBox', {
withGeoControl: true
});
this.child(Timeline).attachTo('.Timeline');
});
App.attachTo(document, {
// some options from the server
userId: 4083095438
});
// wipe the entire app out
App.teardown();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment