refactor: remove redundant error in catch (#25478)

PR Close #25478
This commit is contained in:
Alan Agius
2018-08-14 15:34:51 +02:00
committed by Kara Erickson
parent 929334b0bf
commit b61dafaeac
15 changed files with 28 additions and 28 deletions

View File

@ -295,7 +295,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
getBoundingClientRect(el: Element): any {
try {
return el.getBoundingClientRect();
} catch (e) {
} catch {
return {top: 0, bottom: 0, left: 0, right: 0, width: 0, height: 0};
}
}

View File

@ -48,7 +48,7 @@ export abstract class GenericBrowserDomAdapter extends DomAdapter {
this._transitionEnd = transEndEventNames[key];
}
});
} catch (e) {
} catch {
this._animationPrefix = null;
this._transitionEnd = null;
}