LinkedInAttic / inject

AMD and CJS dependency management in the browser
http://www.injectjs.com
Other
464 stars 48 forks source link

5.1 changes to fix serious nesting bug #285

Closed jakobo closed 11 years ago

jakobo commented 11 years ago

This is a pretty large changeset, so I'll annotate here at the top after an explanation. During some integration testing at LinkedIn, we discovered that trying to "shim" a global variable using an AMD wrapper would be a clean way to support script tags (mixed environment) while beginning to roll out larger AMD support in the site. We discovered that when shimmed, globals were coming back as the empty object {} and debugging led to severe problems in TreeDownloader.

This refactor

And here's the file by file details (significant changes):

fsimeon commented 11 years ago

Ship it!!