Permalink
Browse files

Update @.js

  • Loading branch information...
1 parent a112712 commit b05d39facc53ad2e3551495a9f9212ed46ead55a @guybedford committed Apr 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 @.js
View
@@ -382,7 +382,7 @@ define(['require'], function(req) {
var loadedVersions = this.loadedVersions;
this.getVersionNum(name, config.isBuild, function(moduleName, version, afterpath) {
// load from the expected filename convention
- require([moduleName + (version == 'latest' ? '' : '-' + version) + afterpath], function(m) {
+ require([moduleName + (version == 'latest' ? '' : '-' + version) + (afterpath || '')], function(m) {
loadedVersions[moduleName] = loadedVersions[moduleName] || {};
loadedVersions[moduleName][version] = true;
load(m);

0 comments on commit b05d39f

Please sign in to comment.