Created
April 17, 2012 16:52
-
-
Save aaitken/2407446 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
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' | |
], -> | |
args = arguments | |
#or parallel assignment... | |
$.when(args[0].singleton().deferred, args[1].singleton().deferred).done -> | |
_.each args, (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
Also, here's the compiled output of the [one, two, rest...] = arguments: http://coffeescript.org/#try:thing%20%3D%20(%20-%3E%20%5Bthing%2C%20other%2C%20last...%5D%20%3D%20arguments%20)%0A%0A