Created
April 14, 2016 12:50
-
-
Save nehalist/d9315ad2ea2e3a5942dcdef2a3da6745 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
getInitialData: -> | |
return $q (resolve, reject) => | |
if(@data.length > 0) | |
resolve @data | |
else | |
reject 'data not loaded' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment