Skip to content

Instantly share code, notes, and snippets.

@unscriptable
Created September 4, 2014 15:22
Show Gist options
  • Save unscriptable/80f9550d527134cc61f4 to your computer and use it in GitHub Desktop.
Save unscriptable/80f9550d527134cc61f4 to your computer and use it in GitHub Desktop.
Backbone+curl.js work-around for prawnsalad
curl.config({
paths: {
"backbone": "temp-backbone",
"real-backbone": "path/to/the/real/deal"
}
// the rest of your config goes here :)
});
/**
* @module "temp-backbone"
* This is a kind of "redirect".
* This works because it avoids the use of "exports".
*/
define(['real-backbone'], function (Bb) { return Bb; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment