Blake Winton explains a quick hack to make jQuery-UI work with RequireJS. Click through for links to some web app scaffolding projects to make your next weekend project a little easier.
- Go into your www/js/lib directory.
- curl -O https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.js
- Edit the jquery-ui.js file. At the top add the line define(["jquery"], function (jQuery) {, and at the bottom, add the line });.
- That’s it. From there you should be good to go!
