Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

seajs.require.asyn 函数的回调函数没有执行,remain 等于2 导致callback无法回调 #1732

Open
anyhit opened this issue Aug 25, 2017 · 0 comments

Comments

@anyhit
Copy link

anyhit commented Aug 25, 2017

army兄 邮件给你qq邮箱了。麻烦帮忙看下

大概流程如下
a -> a1 ->a2
b -> c -> a1 ->a2
require('a');
require.async('b',function(callbacktest){
这个callback不会执行
})
我这边大概追了下代码。大概原因如下 a 加载完后。 a1 为loadding状态。a2 为loaded状态
c 请求加载a1的时候,会增加 b的remain计数。但a2的onload方法一直不会执行。导致remain无法减下去

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant