I'm working on an old project that uses jQuery-TE 1.4.0 the browser screams this error ->
Added synchronous DOM mutation listener to a 'DOMSubtreeModified' event. Consider using MutationObserver to make the page more responsive.
Added synchronous DOM mutation listener to a 'DOMCharacterDataModified' event. Consider using MutationObserver to make the page more responsive.
How can I update the two DOM events in .bind to use MutationObserver?
Code Block:
// trigger change method of the text field when the text field modified
.bind("keypress keyup keydown drop cut copy paste DOMCharacterDataModified DOMSubtreeModified",
function()
{
// export contents of the text to the sources
if(!toolbar.data("sourceOpened"))
$(this).trigger("change");
// hide the link-type-field
linktypeSwitch();
// if the change method is added run the change method
if($.isFunction(vars.change))
vars.change();
// the feature of placeholder
if(vars.placeholder && vars.placeholder!="")
$(this).text()!="" ? placeHolder.hide() : placeHolder.show();
})