Opened 10 years ago
Closed 10 years ago
#13121 closed defect (fixed)
DeferredList has unnecessary dependencies
Reported by: | ykami | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | General | Version: | 1.6.1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
DeferredList has dependency on dojo/main.js and thus it pulls many base modules that are not related to DeferredList.
The entire dojox.mobile is written as "base-less" modules to be able to minimize dependent modules. But it looks all this effort went in vain because DeferredList pulls everything.
So, this deps list
define(["./main"], function(dojo) {
should be
define(["./_base/kernel", "./_base/Deferred", "./_base/array"], function(dojo) {
The fixed code passes the DeferredList doh test case.
Note: See
TracTickets for help on using
tickets.
(In [25289]) update define() for deferredlist to baseless. Fixes #13121