Created
August 9, 2012 21:00
-
-
Save Radagaisus/3308016 to your computer and use it in GitHub Desktop.
Tasks
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
| up: (o) -> | |
| tasks = _cpt.topics.concat o | |
| if @initialized # Everything is loaded and we are good to go | |
| while tasks.length | |
| task = tasks.shift() | |
| if @is_function(task) then task() | |
| else @[k](v) for k,v of task | |
| else | |
| # search for the initialization object (the one with the api key) | |
| # and initialize with it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment