Opened 12 years ago

Closed 12 years ago

#3430 closed defect (wontfix)

Patch for dojo.parser to automatically dojo.require dojoType(s)

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.9
Keywords: Cc:
Blocked By: Blocking:

Description

from cameron@… :

Here is a simple patch that calls dojo.require for any dojoType attribute values that the parser processes.

I don't know the reason that this isn't in 0.9.. It seems like a simple change, which should still perform pretty fast, since a dojo.require call will be called at most once per class.

Attachments (1)

dojo.parser-automatically-require-dojoTypes.patch (520 bytes) - added by guest 12 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

Hi Cameron.

Yes, we get this question about once a month, but decided an auto-require feature is "too much magic" to have in dojo. Keep in mind that dojo.require() is sometimes asynchronous so your patch won't work all the time.

Note: See TracTickets for help on using tickets.