[dojo-contributors] defineWidget sets widgetType

Scott J. Miles sjmiles at turboajax.com
Fri Jun 2 13:25:49 EDT 2006


Just an fyi for anybody converting widget definitions to defineWidget:
defineWidget will automatically set widgetType in the widget's prototype to
the last element of the widget class (namespace).
 
e.g., given dojo.widget.defineWidget("a.b.c.d.e.html.f.g.Zot", ...), the
prototype will get widgetType = 'Zot'.
 
Regards,
Scott J. Miles
TurboAjax Group
http://www.turboajax.com




More information about the dojo-contributors mailing list