jorendorff/js-loaders

Loader.prototype.load doesn't check GetOrCreateLoad

guybedford opened this issue · 2 comments

This will cause a TypeError:

  // preload jquery
  System.load('jquery');

  // preload jquery again (just in case)
  System.load('jquery');
  // -> TypeError!

Note that this is a valid use case, because I might want to attach any number of load callbacks knowing when a tree has loaded, without necessarily executing.

Duplicate.