From 92bdcb6272a954d044ea73fe7b713f9098c2307a Mon Sep 17 00:00:00 2001 From: Bruno Joseph Date: Mon, 1 Sep 2014 10:12:01 +0200 Subject: [PATCH] fix bug in >=IE10 --- jquery.row-grid.js | 6 +++--- jquery.row-grid.min.js | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/jquery.row-grid.js b/jquery.row-grid.js index a0cf52c..e3252f6 100644 --- a/jquery.row-grid.js +++ b/jquery.row-grid.js @@ -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'), ' '); } diff --git a/jquery.row-grid.min.js b/jquery.row-grid.min.js index 158256c..5dd8777 100644 --- a/jquery.row-grid.min.js +++ b/jquery.row-grid.min.js @@ -1,4 +1,4 @@ -(function(k){function l(b,a,g){var m=0,e=[];g=jQuery.makeArray(g||b.querySelectorAll(a.itemSelector));var n=g.length;b=b.clientWidth-parseFloat(k(b).css("padding-left"))-parseFloat(k(b).css("padding-right"));for(var r=[],d,f=0;fb){f=m+a.maxMargin*(e.length-1)-b;c=e.length;if((a.maxMargin-a.minMargin)*(c-1)b){f=m+a.maxMargin*(e.length-1)-b;c=e.length;if((a.maxMargin-a.minMargin)*(c-1)