#538 closed defect (fixed)
dojo.require(After)If bails out when condition is false
Reported by: | fredrik at mumme se | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Core | Version: | 0.2 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
if you for example do: dojo.requireAfterIf(djConfig.debugAtAllCosts, "my debug wrapper")
and debugAtAllCosts isnt set or is false it bails out loudly I fixed it for now by adding a extra check in function requireIf in bootstrap2. change:
(arguments[0]=="common") | (dojo.render[arguments[0]].capable)){ |
to:
(arguments[0]=="common") | (arguments[0] && dojo.render[arguments[0]].capable)){ |
Regards Fredrik Johansson
Change History (2)
comment:1 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | 0.3 → 0.2 |
Note: See
TracTickets for help on using
tickets.
Committed revision 3336.