jscrollpane-rails 2.0.21 → 2.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5494c033221ff075b0a0d67c8db5895d862e9283
4
- data.tar.gz: 76c20dbe6a52830cce5a76c015e17d9610fc42cb
3
+ metadata.gz: fd84259317d54de1a62a903e3d13e8083c0e9376
4
+ data.tar.gz: 26d0979aeb14f787116f0bae9217cbf6b65f5872
5
5
  SHA512:
6
- metadata.gz: ed0d69f8c165ff6d1bd8369571efaec91bbc271614c8c015733626de6995f1bbab0e0e9d79fd64dd68595493a4539534255239ee0219ae13f08110ce47387c72
7
- data.tar.gz: 10f3b40d125eb092642984ce1b5fbea3f18a664b80a1c0d96921168bb361c63c7e899cb2823a535455bb81ffee4b64a6acb89d3190b6d9360bc9a98f854824cb
6
+ metadata.gz: b9fc174052ccbc5df94e96f132172e03ca2a48b5ddcda6c9e67b6e53ec2efd85c48764c5a55f4515dc61e890fd87afb0a29c2770dd2febe9194329248ae08f8e
7
+ data.tar.gz: f23a10a1d7b9e60f7c09b834ffe97a98675363241f6238db3d20b7ccf0b3f3e17bdf3b7462bbc11f861e800ceab43937a6b06bcfb14250ffb033918cf7b5cf71
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * jScrollPane - v2.0.21 - 2015-02-24
2
+ * jScrollPane - v2.0.22 - 2015-04-25
3
3
  * http://jscrollpane.kelvinluck.com/
4
4
  *
5
5
  * Copyright (c) 2014 Kelvin Luck
@@ -8,7 +8,7 @@
8
8
 
9
9
  // Script: jScrollPane - cross browser customisable scrollbars
10
10
  //
11
- // *Version: 2.0.21, Last updated: 2015-02-24*
11
+ // *Version: 2.0.22, Last updated: 2015-04-25*
12
12
  //
13
13
  // Project Home - http://jscrollpane.kelvinluck.com/
14
14
  // GitHub - http://github.com/vitch/jScrollPane
@@ -39,6 +39,7 @@
39
39
  //
40
40
  // About: Release History
41
41
  //
42
+ // 2.0.22 - (2015-04-25) Resolve a memory leak due to an event handler that isn't cleaned up in destroy (thanks @timjnh)
42
43
  // 2.0.21 - (2015-02-24) Simplify UMD pattern: fixes browserify when loading jQuery outside of bundle
43
44
  // 2.0.20 - (2014-10-23) Adds AMD support (thanks @carlosrberto) and support for overflow-x/overflow-y (thanks @darimpulso)
44
45
  // 2.0.19 - (2013-11-16) Changes for more reliable scroll amount with latest mousewheel plugin (thanks @brandonaaron)
@@ -937,7 +938,8 @@
937
938
  isScrollableV && validParents.push(verticalBar[0]);
938
939
 
939
940
  // IE also focuses elements that don't have tabindex set.
940
- pane.focus(
941
+ pane.bind(
942
+ 'focus.jsp',
941
943
  function()
942
944
  {
943
945
  elem.focus();
@@ -1036,6 +1038,8 @@
1036
1038
  elem.attr('tabindex', '-1')
1037
1039
  .removeAttr('tabindex')
1038
1040
  .unbind('keydown.jsp keypress.jsp');
1041
+
1042
+ pane.unbind('.jsp');
1039
1043
  }
1040
1044
 
1041
1045
  function observeHash()
@@ -1208,6 +1212,7 @@
1208
1212
  var currentY = contentPositionY(),
1209
1213
  currentX = contentPositionX();
1210
1214
  elem.removeClass('jspScrollable').unbind('.jsp');
1215
+ pane.unbind('.jsp');
1211
1216
  elem.replaceWith(originalElement.append(pane.children()));
1212
1217
  originalElement.scrollTop(currentY);
1213
1218
  originalElement.scrollLeft(currentX);
@@ -1,5 +1,5 @@
1
1
  module JScrollPane
2
2
  module Rails
3
- VERSION = "2.0.21"
3
+ VERSION = "2.0.22"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jscrollpane-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.21
4
+ version: 2.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ilya Bodrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-27 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties