Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#15559 closed defect (fixed)

_WidgetBase.on does not accept dojo/touch

Reported by: ykami Owned by: bill
Priority: undecided Milestone: 1.8
Component: Dijit Version: 1.8.0b1
Keywords: Cc: ben hockey
Blocked By: Blocking:


_WidgetBase.on does not accept dojo/touch. For example, in some widget code, 1. works, but 2. doesn't.

  1. on(this.domNode,, lang.hitch(this, "onMouseDown"));
  2. this.on(, lang.hitch(this, "onMouseDown"));

Script error occurs in _WidgetBase.js as below:

Uncaught TypeError: Object function (node, listener){//called by on(), see dojo.on
			return on(node, type, listener);
		} has no method 'toLowerCase' 

Change History (4)

comment:1 Changed 10 years ago by ben hockey

Cc: ben hockey added

comment:2 Changed 10 years ago by bill

Milestone: tbd1.8
Status: newassigned

comment:3 Changed 10 years ago by bill

Resolution: fixed
Status: assignedclosed

In [29055]:

Allow _WidgetBase.on() and _Widget.on() to connect to synthetic events in addition to strings. Fixes #15559 !strict.

comment:4 Changed 10 years ago by ykami

Verified it works as expected. Thanks.

Note: See TracTickets for help on using tickets.