Skip to content

Instantly share code, notes, and snippets.

@jtrim
Forked from aaitken/gist:2407446
Created April 17, 2012 16:57
Show Gist options
  • Save jtrim/2407480 to your computer and use it in GitHub Desktop.
Save jtrim/2407480 to your computer and use it in GitHub Desktop.
require [
#data
'models/options'
'models/ui'
#thin models
'models/optionsOptions'
'models/optionsClubHead'
'models/optionsGrip'
'models/optionsShaft'
'models/optionsLengthWrap'
'models/uiConfigurations'
'models/uiPresentation'
#cross-model
'shared/getOptionIDs'
#views
'views/share'
'views/config'
'views/configClubHead'
'views/configShaft'
'views/configGrip'
'views/configLengthWrap'
'views/saveAdd'
'views/configViewCompare'
'views/views'
'views/selectedOptions'
'views/stage'
], ->
[options, ui, rest...] = arguments
$.when(options.singleton().deferred, ui.singleton().deferred).done ->
_.each arguments, (item) ->
if item.singleton then item.singleton()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment