We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea4f49 commit c54bd88Copy full SHA for c54bd88
src/esl.js
@@ -281,14 +281,6 @@ var esl;
281
modAnalyse(currentId);
282
}
283
284
- /**
285
- * 尝试完成模块定义的定时器
286
- *
287
- * @inner
288
- * @type {number}
289
- */
290
- var tryDefineTimeout;
291
-
292
/**
293
* 定义模块
294
*
@@ -338,12 +330,6 @@ var esl;
338
330
339
331
if (id) {
340
332
modPreDefine(id, dependencies, factory);
341
342
- // 在不远的未来尝试完成define
343
- // define可能是在页面中某个地方调用,不一定是在独立的文件被require装载
344
- if (tryDefineTimeout) {
345
- clearTimeout(tryDefineTimeout);
346
- }
347
333
348
334
else {
349
335
// 纪录到共享变量中,在load或readystatechange中处理
0 commit comments