Last active
August 29, 2015 14:15
-
-
Save samueljseay/d765c0ec0d804522d42b to your computer and use it in GitHub Desktop.
little better
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
// You could do this | |
var RecentProblemsComponent = Y.Base.create('prb-recent-problems-component', Y.View, [Y.OHP.Component], { | |
initializer: function() { | |
this.goGetData().then(this.render); | |
}, | |
render: function() { | |
if(this.hasSomeData) { | |
this.hideProgressIndicator(); | |
this.showData; | |
} | |
else { | |
this.showProgressIndicator(); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment