Do not modify objects/arrays in incoming arguments – Adobe Dreamweaver API Reference CS5 User Manual
Page 375

370
DREAMWEAVER API REFERENCE
Dynamic documents
Last updated 8/27/2013
var retval;
for (i=0;i
if (gLocNameStrArray[i] == str)
{
retval = gLocValStrArray[i];
break;
}
}
return retval;
}
// Creates Resource look up array locally.
function initJQMStrings(nameArr,valArr)
{
for (i=0;i
gLocNameStrArray[i] = nameArr[i];
gLocValStrArray[i] = valArr[i];
}
// All loadString call will be processed locally
document.loadString = getLocStrVal;
}
$("#ButtonTheme h3").eq(0).html(document.loadString("jQSwathc/Floater/ButtonTheme"));
$("#ButtonTheme h3").eq(1).html(document.loadString("jQSwathc/Floater/ButtonIcon"));
$("#ButtonTheme h3").eq(2).html(document.loadString("jQSwatch/Floater/Button/IconPos"));
$("#ListTheme h3").eq(0).html(document.loadString("jQSwathc/Floater/ListTheme"));
Do not modify objects/arrays in incoming arguments
In Dreamweaver 13.1 and later, when an object or array is passed as an argument through a function call to
mm:browsercontrol, a local copy of the object/array is created in the corresponding render process. So, when you
update the object/array, you only edit the local copy and the original object in Dreamweaver JS layer is not updated.
Hence you need to handle such an object modifications through the callback functions as shown below.
Example:
Prior to Dreamweaver 13.1
DW code:
liveViewBrowser = document.getElementById('browser');
liveViewBrowser.getWindow().document.extensionName = "DreamweaverExtension";