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

steal-0.2.2: is steal('module1').then( 'module2', function(){...}) supported?

$
0
0
First of all this version will be indeed a game changer. Kudos. All design decisions seem to be to the right direction.

One question though. I started a new branch on a project and I'm trying to migrate it to the new version but I'd like to keep the steal way of loading modules, instead of ES, at least for now. But even though steal('module1','module2',function() {...}) works as expected I can't make it work with code like:

  1. steal('module1').then('module2',function() {...});
steal() (at steal.js:5274) does not return a promise. I get the error: "TypeError: Cannot read property 'then' of undefined"

Viewing all articles
Browse latest Browse all 3491

Trending Articles