[Dojo-checkins] [dojo] #9407: dojo.declare: allow creating constructors not bound to global module name
dojo
trac at dojotoolkit.org
Sun Jun 14 18:14:08 EDT 2009
#9407: dojo.declare: allow creating constructors not bound to global module name
--------------------+-------------------------------------------------------
Reporter: jburke | Owner: jburke
Type: defect | Status: closed
Priority: normal | Milestone: future
Component: Core | Version: 1.3.0
Severity: normal | Resolution: wontfix
Keywords: |
--------------------+-------------------------------------------------------
Changes (by jburke):
* status: new => closed
* resolution: => wontfix
* milestone: 1.4 => future
Comment:
Attached a patch, but this causes a problem for the declaredClass
property. It uses className.
declaredClass is used by dijit to create instance IDs, uses it to do a
getObject to get default attributes.
dojo.NodeList's instantiate method uses it to create instances. This
anonymous constructor functionality would not be used likely with
NodeList.instantiate, but the widget implications are a little bit more
troublesome.
In general it is nice to be able to use a string name for a
module/constructor -- it means you do not have to know the name beforehand
and allows dynamic code loading. So I'll close this as wontfix.
--
Ticket URL: <http://bugs.dojotoolkit.org/ticket/9407#comment:1>
dojo <http://dojotoolkit.org/>
The Dojo UI Toolkit
More information about the Dojo-checkins
mailing list