Opened 6 years ago

Last modified 2 years ago

#17324 new defect

dojox/layout/ContentPane doesn't clear ._contentSetter._code

Reported by: inghamc Owned by:
Priority: undecided Milestone: 1.15
Component: DojoX Layout Version: 1.9.0
Keywords: Cc:
Blocked By: Blocking:

Description

If I initialize a dojox/layout/ContentPane using .href, and then later replace its content via .content, the script from the href content is re-executed.
My workaround was to invoke

    dojoxContentPane._contentSetter.code = null;
    dojoxContentPane.set('content', newContent);

In my case newContent had no script to be executed - I don't know if things would have been happier if it did or not.

Change History (2)

comment:1 Changed 3 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 2 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.