Skip to content

Commit 21f890b

Browse files
author
Max Tobias Weber
committed
$.browser.msie
$.browser.msie is deprecated since jquery 1.9 In my opinion the msie workaround is a good solution for all browsers to prevent unnecessary columnizeIt function calls so I edited it to go this way as default.
1 parent 1e8bb3e commit 21f890b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/jquery.columnizer.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,11 @@
9595

9696
if(!options.buildOnce){
9797
$(window).resize(function() {
98-
if(!options.buildOnce && $.browser.msie){
98+
if(!options.buildOnce){
9999
if($inBox.data("timeout")){
100100
clearTimeout($inBox.data("timeout"));
101101
}
102102
$inBox.data("timeout", setTimeout(columnizeIt, 200));
103-
}else if(!options.buildOnce){
104-
columnizeIt();
105-
}else{
106-
// don't rebuild
107103
}
108104
});
109105
}

0 commit comments

Comments
 (0)