Skip to content
This repository was archived by the owner on Dec 20, 2022. It is now read-only.

Commit 1d10911

Browse files
committed
Fix tests
1 parent 4941556 commit 1d10911

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

include-min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

include.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,12 @@
147147
* onModuleLoaded
148148
* @param {String} name name of the module
149149
* @param {Number} index index of the module
150-
* @param {Boolean} isCss
151150
*/
152-
Include.prototype.onModuleLoaded = function (name, index, isCss) {
151+
Include.prototype.onModuleLoaded = function (name, index) {
153152
var self = this;
154153

155154
// Is this script add a waiting module ? If not, that's a "normal" script file
156-
if (index > waitingModules.length || isCss) {
155+
if (index > waitingModules.length) {
157156
scriptCounter--;
158157
modules[name] = modules[name] || scriptCounter;
159158
} else if (waitingModules[0][0] === null) {
@@ -202,7 +201,7 @@
202201
while (i--) {
203202
if (sheets[i].href.indexOf(href) != -1) {
204203
elem.setAttribute('data-loaded', true);
205-
self.onModuleLoaded(elem.getAttribute('data-module'), elem.getAttribute('data-count'), true);
204+
self.onModuleLoaded(elem.getAttribute('data-module'), elem.getAttribute('data-count'));
206205
return;
207206
}
208207
}

0 commit comments

Comments
 (0)