Opened 11 years ago

Closed 11 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:


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;

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

Change History (2)

comment:1 Changed 11 years ago by ykami

ToolBarButton also has the similar programmatic instantiation problem.

comment:2 Changed 11 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.