Skip to content

Commit

Permalink
fix(uiGridHeaderCell): Use hasClass() for IE9
Browse files Browse the repository at this point in the history
IE9 doesn't support `classList`. Use angular.element's hasClass() instead.
  • Loading branch information
c0bra committed Oct 8, 2014
1 parent 072712a commit 7923f22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/core/directives/ui-grid-column-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ function ( i18nService, uiGridConstants, gridUtil ) {

if ( menu.length !== 0 ){
var mid = menu[0].querySelectorAll('.ui-grid-menu-mid');
if ( mid.length !== 0 && !mid[0].classList.contains('ng-hide') ){
if ( mid.length !== 0 && !angular.element(mid).hasClass('ng-hide') ) {
myWidth = gridUtil.elementWidth(menu, true);
$scope.lastMenuWidth = myWidth;
column.lastMenuWidth = myWidth;
Expand Down

0 comments on commit 7923f22

Please sign in to comment.