Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Always use the 'load' event to trigger dependent downloads.

  • Loading branch information...
commit 4e12b56af808cdd0c1e3fca59343c25471af29dc 1 parent a0382a1
@jcoglan authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/package/package.js
View
4 source/package/package.js
@@ -115,8 +115,8 @@ JS.Package = function(loader) {
if (!this.fire('request')) return;
var allDeps = this._deps.list.concat(this._uses.list),
- startEvent = klass._isIE ? 'load' : 'download',
- listener = {};
+ startEvent = 'load', // could potentially use 'download' event in
+ listener = {}; // browsers that guarantee execution order
listener[startEvent] = this._deps.list;
Please sign in to comment.
Something went wrong with that request. Please try again.