Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : steal config deps not working

$
0
0
With legacy versions of StealJS, I had to settle for wrapping each library manually with steal(), because otherwise this error would occur - caused by the contents of jquery-ui.js being evaluated before jquery.js. 

Example of jquery-ui.js:

  1. steal('jquery', function(jQuery) {
  2.       
  3.       // ... original contents of jquery-ui.js goes here ...

  4. });
Obviously not ideal, but it takes a few seconds, and you can go back to being productive :)


Viewing all articles
Browse latest Browse all 3491

Trending Articles