diff options
Diffstat (limited to 'libs/bower_components/jScrollPane/dynamic_height.html')
-rw-r--r-- | libs/bower_components/jScrollPane/dynamic_height.html | 30 |
1 files changed, 13 insertions, 17 deletions
diff --git a/libs/bower_components/jScrollPane/dynamic_height.html b/libs/bower_components/jScrollPane/dynamic_height.html index fdfc01bb39..6b05550b88 100644 --- a/libs/bower_components/jScrollPane/dynamic_height.html +++ b/libs/bower_components/jScrollPane/dynamic_height.html @@ -34,7 +34,7 @@ </style> <!-- latest jQuery direct from google's CDN --> - <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> + <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <!-- the mousewheel plugin --> <script type="text/javascript" src="script/jquery.mousewheel.js"></script> <!-- the jScrollPane script --> @@ -59,22 +59,18 @@ 'resize', function() { - if ($.browser.msie) { - // IE fires multiple resize events while you are dragging the browser window which - // causes it to crash if you try to update the scrollpane on every one. So we need - // to throttle it to fire a maximum of once every 50 milliseconds... - if (!throttleTimeout) { - throttleTimeout = setTimeout( - function() - { - api.reinitialise(); - throttleTimeout = null; - }, - 50 - ); - } - } else { - api.reinitialise(); + // IE fires multiple resize events while you are dragging the browser window which + // causes it to crash if you try to update the scrollpane on every one. So we need + // to throttle it to fire a maximum of once every 50 milliseconds... + if (!throttleTimeout) { + throttleTimeout = setTimeout( + function() + { + api.reinitialise(); + throttleTimeout = null; + }, + 50 + ); } } ); |