Opened 8 years ago

Closed 8 years ago

#13415 closed defect (fixed)

Error if there is a widget that has no containerNode on the View.

Reported by: nkzawa Owned by: ykami
Priority: high Milestone: 1.7
Component: DojoX Mobile Version: 1.7.0b1
Keywords: 1.7-mobile Cc: n.kanezawa@…
Blocked By: Blocking:

Description

In the function of dojo.addOnLoad (dojox.mobile.common), error will occur in the findWidgets function when root parameter is null (=containerNode is null). dojox.mobile.Button, Tooltip and Switch have no containerNode. I don't know it's on purpose, but may need to fix these too.

line 348: arr = dijit.findWidgets(root); This should be like: if (!root) return; arr = dijit.findWidgets(root);

Change History (2)

comment:1 Changed 8 years ago by ykami

Keywords: 1.7-mobile added
Milestone: tbd1.7
Status: newassigned

Thank you for finding this.

comment:2 Changed 8 years ago by ykami

Resolution: fixed
Status: assignedclosed

(In [25766]) Fixes #13415 !strict. Added null check in findWidget. Some code clean-ups.

Note: See TracTickets for help on using tickets.