Fix for duplicate tree nodes bug in FF 1.0.x
Here is the patch which seems correcting AW 2.0 problem in Firefox 1.0.x where tree nodes get duplicated on expand/collapse.
If you are using AW 2.0 tree control and have to support Firefox 1.0.x - add this code to the end of aw.js file.
if (AW.gecko){
AW.setOuterHTML = function(element, html){
var range = element.ownerDocument.createRange();
range.setStartBefore(element);
var fragment = range.createContextualFragment(html);
element.parentNode.insertBefore(fragment, element);
element.parentNode.removeChild(element);
};
}
If you are using AW 2.0 tree control and have to support Firefox 1.0.x - add this code to the end of aw.js file.
Alex (ActiveWidgets)
March 23,