Skip to content

Improved Define() Function Conversion

Compare
Choose a tag to compare
@gfranko gfranko released this 13 Oct 03:13
· 217 commits to master since this release

Define() method calls that have one or more dependencies will now be converted like this:

AMD

define('example', ['example1', 'example2'], function(one, two) {

});

Standard

var example = function (one, two) {

}(example1, example2);