Skip to content
This repository has been archived by the owner on Dec 20, 2022. It is now read-only.

Commit

Permalink
Fix AMD loading
Browse files Browse the repository at this point in the history
  • Loading branch information
CapMousse committed Feb 23, 2014
1 parent 02261aa commit af39bc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion include-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions include.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,12 @@
n = dependencie.push ? dependencie[0] : dependencie

if (modules[n] !== undefined) {
console.log(n, modules[n]);
args.push(modules[n]);
}
});

if (dependencies.length === args.length || dependencies.length === 0) {
exec = exec.apply(this, args);
exec = typeof exec == 'function' ? exec.apply(this, args) : exec;
module.push(true);

if (name !== null) {
Expand Down Expand Up @@ -221,7 +220,7 @@
name = null;
}

if (typeof deps !== "object") {
if (deps.constructor !== [].constructor) {
module = deps;
deps = [];
}
Expand Down

0 comments on commit af39bc8

Please sign in to comment.