﻿if (typeof (NSM) == 'undefined') NSM = {};

NSM.Testing = {
    init: function () {
        window.onerror = function (msg, url, line_no) {
            var hiddenErrorElement = document.createElement('input');
            hiddenErrorElement.id = 'NSM.Testing.ErrorElement';
            hiddenErrorElement.type = 'hidden';
            hiddenErrorElement.value = msg;
            document.body.appendChild(hiddenErrorElement);
            return true;
        };
        console.log("Test console log");
    }
}

$(NSM.Testing.init);
