Skip to content

Commit

Permalink
Use try catch for e.preventDefault in timout. Solves the "member not …
Browse files Browse the repository at this point in the history
…found" error for older versions of ie (apparently older versions of ie don't allow the error object to be passed through a setTimeout).
  • Loading branch information
chappellp8b authored and chappellp8b committed May 25, 2015
1 parent f44b65f commit df1e60b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dist/css/lightslider.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightslider - v1.1.2 - 2015-04-14
/*! lightslider - v1.1.2 - 2015-05-25
* https://github.com/sachinchoolur/lightslider
* Copyright (c) 2015 Sachin N; Licensed MIT */
/** /!!! core css Should not edit !!!/**/
Expand Down
2 changes: 1 addition & 1 deletion dist/css/lightslider.min.css

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

10 changes: 5 additions & 5 deletions dist/js/lightslider.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! lightslider - v1.1.2 - 2015-04-14
/*! lightslider - v1.1.2 - 2015-05-25
* https://github.com/sachinchoolur/lightslider
* Copyright (c) 2015 Sachin N; Licensed MIT */
(function ($, undefined) {
Expand Down Expand Up @@ -382,7 +382,7 @@
}
}
var $cSouter = $slide.parent();
$cSouter.find('.lSPager').html(pagers);
$cSouter.find('.lSPager').html(pagers);
if (settings.gallery === true) {
if (settings.vertical === true) {
// set Gallery thumbnail width
Expand Down Expand Up @@ -1069,14 +1069,14 @@
}, 10);
$(window).on('resize orientationchange', function (e) {
setTimeout(function () {
if (e.preventDefault) {
try {
e.preventDefault();
} else {
} catch(er) {
e.returnValue = false;
}
refresh.init();
}, 200);
});
return this;
};
}(jQuery));
}(jQuery));
Loading

0 comments on commit df1e60b

Please sign in to comment.