Skip to content

Instantly share code, notes, and snippets.

@hojberg
Created June 9, 2011 14:35
Show Gist options
  • Save hojberg/1016844 to your computer and use it in GitHub Desktop.
Save hojberg/1016844 to your computer and use it in GitHub Desktop.
YUI.add("presenters:your_rewards", function (Y) {
Y.YourRewardsPresenter = Y.Base.create("YourRewardsPresenter", Y.Presenter, [], {
initializer: function (options) {
this.yourPlacesPresenter = new Y.YourPlacesPresenter({});
this.yourCashPresenter = new Y.YourCashPresenter({});
this.yourCashPresenter.on("loaded", this.renderYourCashTabCount, this);
},
renderYourCashTabCount: function (count) {
Y.one(".sometab").append(Y.Node.create("<span class='coun'>" + count + "</span>"));
}
}, { ATTRS: {} });
}, "1.0.0", {requires: []});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment