Opened 7 years ago

Last modified 5 years ago

#18549 new defect

stopParser not working in templated widgets

Reported by: MarkoV Owned by: bill
Priority: undecided Milestone: 1.14
Component: Parser Version: 1.10.4
Keywords: Cc:
Blocked By: Blocking:


The parser does not honour stopParser:true in a custom widget with WidgetsInTemplateMixin?. It still tries to parse the widget again leading to the "but that id is already registered" error.


<!DOCTYPE html>
<head lang="en">
    <meta charset="UTF-8">
    <script type="text/javascript" >
        var dojoConfig={
            async: true,
            parseOnLoad: true,
            isDebug: true,
            locale: 'en-gb',
            aliases: [["text", "dojo/text"]],
            packages: [{
                location: location.pathname.replace(/\/[^/]+$/, "") +"../mymodule",
                name: "test"
 <script src="//"></script>
    <script type="text/javascript" >
        ], function(mod) {
            var mg = new mod({},"mod")
<div id="mod"></div>

], function(WidgetBase, WidgetsInTemplateMixin,  LayoutContainer,_TemplatedMixin,  declare) {
    return declare([ WidgetBase,_TemplatedMixin,WidgetsInTemplateMixin], {
        templateString:"<div> <div data-dojo-type='dijit/layout/LayoutContainer' data-dojo-attach-point='header' ></div> </div> ",
        startup: function() {



Attachments (1) (1.1 KB) - added by MarkoV 7 years ago.
Example code

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by MarkoV

Attachment: added

Example code

comment:1 Changed 7 years ago by dylan

Milestone: tbd1.12

comment:2 Changed 5 years ago by dylan

Milestone: 1.131.14
Note: See TracTickets for help on using tickets.