Skip to content
Permalink
Browse files

MDL-57009 javascript: Always use when.apply

Or it does not really wait for the promises.
  • Loading branch information...
damyon authored and danpoltawski committed Feb 7, 2017
1 parent f265312 commit ddbf8c29aefb40d0b7e83cf4cca97817c4e00f0b
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/amd/build/templates.min.js
  2. +1 −1 lib/amd/src/templates.js

Some generated files are not rendered by default. Learn more.

@@ -515,7 +515,7 @@ define(['core/mustache',
fetchThemAll.push(this.cachePartials(partials[i]));
}

return $.when(fetchThemAll).then(function() {
return $.when.apply($, fetchThemAll).then(function() {
return templateSource;
});
}.bind(this));

0 comments on commit ddbf8c2

Please sign in to comment.
You can’t perform that action at this time.