Created
July 5, 2012 21:24
-
-
Save jrburke/3056571 to your computer and use it in GitHub Desktop.
Wiring for jquery adapter
This file contains hidden or 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
requirejs.config({ | |
map: { | |
'*': { | |
'jquery': 'jquery-adapter' | |
}, | |
'jquery-adapter': { | |
'jquery': 'jquery' | |
} | |
}); | |
//Then jquery-adapter.js looks like: | |
define(['jquery'], function ($) { | |
$.noConflict(); | |
return $; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment