Skip to content

Instantly share code, notes, and snippets.

@Radagaisus
Created August 9, 2012 21:00
Show Gist options
  • Select an option

  • Save Radagaisus/3308016 to your computer and use it in GitHub Desktop.

Select an option

Save Radagaisus/3308016 to your computer and use it in GitHub Desktop.
Tasks
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