Created
September 4, 2014 15:22
-
-
Save unscriptable/80f9550d527134cc61f4 to your computer and use it in GitHub Desktop.
Backbone+curl.js work-around for prawnsalad
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
curl.config({ | |
paths: { | |
"backbone": "temp-backbone", | |
"real-backbone": "path/to/the/real/deal" | |
} | |
// the rest of your config goes here :) | |
}); |
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
/** | |
* @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