Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(tab): fix event handler call
Browse files Browse the repository at this point in the history
* switch event handler call to look at `event.isDefaultPrevented()` instead of
  `event.defaultPrevented` as angular has implemented that method on jqlite
  events.

Fixes #5720
Closes #5738
  • Loading branch information
icfantv committed Apr 4, 2016
1 parent 701e0cb commit d767afb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tabs/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ angular.module('ui.bootstrap.tabs', [])
previousSelected.tab.onDeselect({
$event: evt
});
if (evt && evt.defaultPrevented) {
if (evt && evt.isDefaultPrevented()) {
return;
}
previousSelected.tab.active = false;
Expand Down

0 comments on commit d767afb

Please sign in to comment.