Skip to content

Commit

Permalink
fix bug in >=IE10
Browse files Browse the repository at this point in the history
  • Loading branch information
brunjo committed Sep 1, 2014
1 parent 5136083 commit 92bdcb6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions jquery.row-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
// write
for(var index = 0; index < itemsSize; ++index) {
if (items[index].classList) {
items[index].classList.remove(options.firstItemClass, options.lastRowClass);
}
else {
items[index].classList.remove(options.firstItemClass);
items[index].classList.remove(options.lastRowClass);
} else {
// IE <10
items[index].className = items[index].className.replace(new RegExp('(^|\\b)' + options.firstItemClass + '|' + options.lastRowClass + '(\\b|$)', 'gi'), ' ');
}
Expand Down
8 changes: 4 additions & 4 deletions jquery.row-grid.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92bdcb6

Please sign in to comment.