Bug 978709 - 2.d/6: don't throw in _deliverDataCallCallback loop. r=hsinyi

This commit is contained in:
Vicamo Yang 2014-03-29 15:18:13 +08:00
Родитель b71f31cdfd
Коммит cf68aca1e4
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1109,11 +1109,11 @@ DataConnectionHandler.prototype = {
if (this._dataCallbacks.indexOf(callback) == -1) {
continue;
}
try {
let handler = callback[name];
if (typeof handler !== "function") {
throw new Error("No handler for " + name);
}
try {
handler.apply(callback, args);
} catch (e) {
if (DEBUG) {