The-M-Project
The-M-Project copied to clipboard
Buttons and Labels are duplicated if included
If you include a Toolbar with child items in a header or footer or if you include items by themselves or as a group of items kind of like a widget in a content or other dom view area they are duplicated in the dom view on render.
They seem to increase in number based on the alphabetical order of the filename and/or class name though I have not investigated that.
I have tested this with Button and with Label.
If you change this in the render function...
this.html += '<div id="' + this.id + '"' + this.style() + '>';
to...
this.html =
Duplication stops. Not sure what other widgets or collections of widgets this affects or if removing it causes additional issues.'