EduardET

js error

Nov 15th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. jQuery(window).load(function() {
  2.                 jQuery('.scroll-pane').each(
  3.                 function()
  4.                 {
  5.                     $(this).jScrollPane(
  6.                     {
  7.                         showArrows: $(this).is('.arrow')
  8.                     }
  9.                 );
  10.                     var api = $(this).data('jsp');
  11.                     var throttleTimeout;
  12.                     $(window).bind(
  13.                     'resize',
  14.                     function()
  15.                     {
  16.                         if ($.browser.msie) {
  17.                             if (!throttleTimeout) {
  18.                                 throttleTimeout = setTimeout(
  19.                                 function()
  20.                                 {
  21.                                     api.reinitialise();
  22.                                     throttleTimeout = null;
  23.                                 },
  24.                                 50
  25.                             );
  26.                             }
  27.                         } else {
  28.                             api.reinitialise();
  29.                         }
  30.                     }
  31.                 );
  32.                 }
  33.             )
  34.             });
Advertisement
Add Comment
Please, Sign In to add comment