Skip to content

Instantly share code, notes, and snippets.

@dan-palmer
Created November 25, 2013 23:41
Show Gist options
  • Save dan-palmer/7650893 to your computer and use it in GitHub Desktop.
Save dan-palmer/7650893 to your computer and use it in GitHub Desktop.
Managing RequireJS Dependency Arrays
## Managing RequireJS Dependency Arrays
define ['jQuery','Backbone','Handlebars','AModel'], ($, _, Backbone, HB, AModel) ->
...
## VERSUS Node style requires..
define (require) ->
$ = require 'jQuery'
Backbone = require 'Backbone'
HB = require 'Handlebars'
SomeModel = require 'AModel'
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment