When the following piece of JavaScript code runs in the browser, the exception "object is not a function" is thrown in the first line. Why is that? I can't find the error.
((function (getSettings) {
tinyMceWysiwygSetup.prototype.getSettings = function (mode) {
var oSettings = getSettings.call(this, mode);
oSettings.extended_valid_elements = "article[class],section[class],input[placeholder|accept|alt|checked|disabled|maxlength|name|readonly|size|src|type|value|class|id]";
return oSettings;
};
})(tinyMceWysiwygSetup.prototype.getSettings));
Also, if I paste the above snipped in the Chrome Developer Tools JS console, no exception is thrown. This is a screenshot from the Chrome Debugger, when the exception is caught: