Created
February 18, 2015 03:06
-
-
Save samueljseay/5adc902e5ab6eec09370 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
// Don't do this | |
var RecentProblemsComponent = Y.Base.create('prb-recent-problems-component', Y.View, [Y.OHP.Component], { | |
initializer: function() { | |
this.goGetData().then(this.renderAThing); | |
}, | |
renderAThing: function() { | |
//render part of my UI | |
this.nowFetchSomeOtherDataPls().then(this.renderOtherThings); | |
}, | |
nowFetchSomeOtherDataPls: function() { | |
//render a second part of my UI | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment