Skip to content
This repository was archived by the owner on Jan 24, 2019. It is now read-only.

Commit 9e7466c

Browse files
committed
fix AMD when no interception required in stack
1 parent 22fce7d commit 9e7466c

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

js.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
$js - asynchronous module definition framework
33
or just simple lightweight javascript dependencies manager
44
5-
@version 2.4
5+
@version 2.5
66
@link http://github.com/redcatphp/js/
77
@author Jo Surikat <jo@surikat.pro>
88
@website http://redcatphp.com
@@ -597,7 +597,12 @@
597597
else{
598598
js.modulesStack.push(mod);
599599
}
600-
interceptor.callback();
600+
if(!interceptor.callback){
601+
intercepting = false;
602+
}
603+
else{
604+
interceptor.callback();
605+
}
601606
});
602607
}
603608
else{

0 commit comments

Comments
 (0)