jQuery get params of onerror event

873 Views Asked by At

Js code:

window.onerror = function(message, source, lineno)
    {
        alert("Ошибка:"+message +"\n" + "файл:" + source + "\n" + "строка:" + lineno);
    };

jQuery code:

$(window).bind('error', function (event) 
    { 
        console.log(event); 
        //event.data
        //.message ?
        //.lineno ?
        //.source ?
    }
);

How get "message", "lineno" and "source" values from jQuery-event? Value event.data is null.

0

There are 0 best solutions below