Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#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:

if((arguments[0] === true)
(arguments[0]=="common")(dojo.render[arguments[0]].capable)){

to:

if((arguments[0] === true)
(arguments[0]=="common")(arguments[0] && dojo.render[arguments[0]].capable)){

Regards Fredrik Johansson

Change History (2)

comment:1 Changed 14 years ago by bill

Resolution: fixed
Status: newclosed
Version: 0.30.2

Committed revision 3336.

comment:2 Changed 12 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.