lazybox 1.1.2 → 1.1.3

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: 0662494ff4a4dbebf2df420c06a9dfe11e2a254c
4
- data.tar.gz: 55258e0eb76f7ba29f68a5b68de27c0c87930777
3
+ metadata.gz: 50eb959bc87e84f5d56ca8f572d4bb8bd0f5dd8a
4
+ data.tar.gz: 2d0329944a835dc55d061e836390b875aa3b7795
5
5
  SHA512:
6
- metadata.gz: fff9d3710a05e70ba8ebe8b9d6f46a65b75a688185f7fa3677ffe630cefe4ed3efaf78a979ab93c31b14e3639e96694de378b6b40c2b29bbcf6aacebfbbb23b0
7
- data.tar.gz: 2fd64ef850b19910da81c2bc93cf7d2323e0dfdde36ecc147d95f0f2fff5a22f73ff15825ae4f4a2bcf0812f3d8f654ee40a47b21324833856a7f4555e305e5c
6
+ metadata.gz: 18095271b343f6acb9de5f8f4263143d754538b68d1bd5366a3cef09e90386f0d0c7fcb21bc4a452554e5f7a1ddaf27f3f02c934f774669e6594abf73eedeb15
7
+ data.tar.gz: 7df9c7c33ff99a9fcaa6a9b50c08b1122a5ec2de707f42b02324b183c5548126127ebb2501e8db2bd948fd55e4676187d994966f81494b13be36821f2d636d89
@@ -51,9 +51,8 @@
51
51
  options = $.extend {}, defaults, $.lazybox.settings, options
52
52
  $('#lazybox').attr('class', options.klass)
53
53
  $('#lazy_close').toggleClass('visible', options.close)
54
- unless options.modal
55
- $('#lazy_overlay').one 'click', (e) ->
56
- $.lazybox.close() if e.target == @
54
+ $(document).on 'click', '#lazy_overlay', (e) ->
55
+ $.lazybox.close() if !options.modal && e.target == $('#lazy_overlay')[0]
57
56
  $(document).on 'keyup.lazy', (e) ->
58
57
  if e.keyCode == 27 and options.esc
59
58
  $.lazybox.close()
@@ -1,3 +1,3 @@
1
1
  module Lazybox
2
- VERSION = '1.1.2'
2
+ VERSION = '1.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazybox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Galushka