Skip to content

Commit

Permalink
Merge pull request seajs#2 from chx007/patch-2
Browse files Browse the repository at this point in the history
Update src/bootstrap.js
  • Loading branch information
chx007 committed Sep 27, 2012
2 parents 4899c79 + 1a233d1 commit 61c087a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@


// Loads the data-main module automatically.
config.main && seajs.use(config.main)
if (config.src) {
seajs.use(config.src, function(){
config.main && seajs.use(config.main)
})
}
else {
config.main && seajs.use(config.main)
}

// Parses the pre-call of seajs.config/seajs.use/define.
// Ref: test/bootstrap/async-3.html
Expand Down

0 comments on commit 61c087a

Please sign in to comment.