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

Re : example of using zepto.js with steal.js

$
0
0
Steal can be used with any library. You will have to use a shim so Steal can properly pass Zepto into steal callbacks:

stealconfig.js

  1. ...
  2. shim: {
  3.       'zepto': {
  4.             exports: 'Zepto'
  5.       }
  6. }
  7. ...

And in your code:

  1. steal('zepto', function($) {
  2.       ...
  3. })

Viewing all articles
Browse latest Browse all 3491

Trending Articles