Opened 8 years ago

Closed 8 years ago

#13043 closed defect (fixed)

Script error occurs when ListItem is created programmatically

Reported by: ykami Owned by: ykami
Priority: high Milestone: 1.7
Component: DojoX Mobile Version: 1.6.1
Keywords: 1.7-mobile Cc:
Blocked By: Blocking:

Description

Setting label after instantiation of ListItem causes the error. Below is a sample code to reproduce the problem.

var view = dijit.byId("foo");
var demoWidget = new dojox.mobile.RoundRectList();
view.addChild(demoWidget);

var childWidget = new dojox.mobile.ListItem({id:"item1", icon:"../images/i-icon-1.png", rightText:"Off", moveTo:"bar", label:"u1space"});
demoWidget.addChild(childWidget);
childWidget = new dojox.mobile.ListItem({id:"item2", icon:"../images/i-icon-2.png", rightText:"On", moveTo:"bar",label:"u2space"});
demoWidget.addChild(childWidget);
childWidget = new dojox.mobile.ListItem({id:"item3"});
demoWidget.addChild(childWidget);
childWidget.set({rightText:"Off", moveTo:"bar", label :"Wi-Fi"});

Change History (2)

comment:1 Changed 8 years ago by ykami

ToolBarButton also has the similar programmatic instantiation problem.

comment:2 Changed 8 years ago by ykami

Resolution: fixed
Status: newclosed

(In [25118]) Fixes #13043 !strict Fixed error on programmatic instantiation

Note: See TracTickets for help on using tickets.