-
-
Save necolas/0e3b39058d5593c45df7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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