Permalink
Browse files

Update @.js

  • Loading branch information...
1 parent 4e3fa4d commit c482d3da9b516c1d999b2e30e896fb445e5871eb @guybedford committed Apr 12, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 @.js
View
3 @.js
@@ -398,9 +398,12 @@ define(['require'], function(req) {
},
load: function(name, req, load, config) {
var loadedVersions = this.loadedVersions;
+ var self = this;
this.getVersion(name, config.isBuild, function(moduleName, version, master) {
// load from the expected filename convention
require([moduleName + (master ? '' : '-' + version)], function(m) {
+ if (self.onLoad)
+ self.onLoad(moduleName, version, master);
loadedVersions[moduleName] = loadedVersions[moduleName] || {};
loadedVersions[moduleName][version] = true;
load(m);

0 comments on commit c482d3d

Please sign in to comment.