mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-19 20:57:57 +01:00
Disable error chatch
This commit is contained in:
parent
aee814ffa7
commit
8eb84ce7b3
@ -79,13 +79,13 @@ if (core.Utils.isDefined(window.LoggerService))
|
||||
}
|
||||
|
||||
|
||||
// Handle error events ...
|
||||
window.onerror = function(sMsg, sUrl, sLine)
|
||||
{
|
||||
window.hasUnexpectedErrors = true;
|
||||
var msg = sMsg + ' (' + sUrl + ', line ' + sLine + ')';
|
||||
wLogger.fatal(msg);
|
||||
|
||||
$(window).fireEvent("error",null,0);
|
||||
return false;
|
||||
};
|
||||
//// Handle error events ...
|
||||
//window.onerror = function(sMsg, sUrl, sLine)
|
||||
//{
|
||||
// window.hasUnexpectedErrors = true;
|
||||
// var msg = sMsg + ' (' + sUrl + ', line ' + sLine + ')';
|
||||
// wLogger.fatal(msg);
|
||||
//
|
||||
// $(window).fireEvent("error",null,0);
|
||||
// return false;
|
||||
//};
|
Loading…
Reference in New Issue
Block a user