previous AMD ordering was not correct

This commit is contained in:
togru 2015-02-09 09:00:42 +01:00
parent 36990570c4
commit a27a893eeb
2 changed files with 3 additions and 3 deletions

View file

@ -4721,9 +4721,9 @@ module ts {
var amdDependency = {path: pathMatchResult[2], name: nameMatchResult ? nameMatchResult[2] : undefined };
// AMD dependencies with names have to go first in define header
if (nameMatchResult) {
amdDependencies.push(amdDependency);
} else {
amdDependencies.unshift(amdDependency);
} else {
amdDependencies.push(amdDependency);
}
}
}

View file

@ -10,6 +10,6 @@ m1.f();
///<amd-dependency path='bar' name='b'/>
///<amd-dependency path='foo'/>
///<amd-dependency path='goo' name='c'/>
define(["require", "exports", "m2", "foo", "bar", "goo"], function (require, exports, m1, b, c) {
define(["require", "exports", "m2", "goo", "bar", "foo"], function (require, exports, m1, c, b) {
m1.f();
});