Opened 10 years ago

Closed 10 years ago

#15014 closed defect (fixed)

Dojo Mobile - Update test_ListItem-actions.html to new APIs

Reported by: Eric Durocher Owned by: ykami
Priority: high Milestone: 1.8
Component: DojoX Mobile Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:


The test case dojox/mobile/tests/test_ListItem-actions.html does not work any more because of API changes in

  • addChild method no more present on several widgets,
  • onclick handler is called twice, with inconsistent argument, because set using the onclick attribute.

Attached patch with the following changes:

  • addChild replaced by replaceAt/startup calls
  • onclick="actionN(this)" replaced by onClick:actionN in data-dojo-props
  • modified the code of the actionN functions to use 'this' to get the ListItem? instance

Attachments (1)

test_ListItem-actions.patch (5.5 KB) - added by Eric Durocher 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Eric Durocher

Attachment: test_ListItem-actions.patch added

comment:1 Changed 10 years ago by ykami

Milestone: tbd1.8
Priority: undecidedhigh

comment:2 Changed 10 years ago by ykami

Resolution: fixed
Status: newclosed

In [28151]:

Fixes #15014 Fixed addChild and onclick problems. Thank you edurocher for the patch.

Note: See TracTickets for help on using tickets.