hooch 0.13.1 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f76e60f68ad16df45e9c59fece26a363dc1f01be
4
- data.tar.gz: c4078fc5c1990d32b6eb4f249a684a8069df80cd
3
+ metadata.gz: c453d5f21e48c17056e5c3016fc9439c447ee9d3
4
+ data.tar.gz: 6b52a1b1d79458fbb08146cce8613380edffdf5a
5
5
  SHA512:
6
- metadata.gz: f27c044997f7b4ca1c4cf58c9ff699e52545fbc6a05370cf87d22b31ce651538d866b8d2af9fedf793c3c01b88b4974c404812cd55f21217c8702e9fccbd75bb
7
- data.tar.gz: 980199ded9a0bc8e204de78c78b8129e5d5d12573e56fed8df05e9cbbfb530cf74f225267c8039a7a446e3866993a3f168e3fe64b536b754798e607cf204bdb5
6
+ metadata.gz: d452f69a39db675e927a9d1d88f391fb2e0a71dc7baaab14a012732dc89c2cb73ca9cec265e0eef3f842f18a88428efbe1964b8c4cdd339590bda5ac0706a7ee
7
+ data.tar.gz: 4221a4d84e1a2489916155acb349d198e67e2fbe2930c25c9c677062f8daa1e346ee81e73d2e3ae586711ac0045f323e99c22087fad59e80ff352441e255577e
@@ -20,19 +20,18 @@ var initHooch = function(){
20
20
  }),
21
21
  HideShow: Class.extend({
22
22
  init: function($trigger){
23
+ this.$trigger = $trigger
23
24
  this.$target = $($trigger.data('target'))
24
25
  var trigger = this
25
26
  if($trigger.data('any-click-closes')){
26
- $(window).on('click',function(){
27
- if(trigger.$target.is(':visible')){
27
+ $(window).on('click',function(e){
28
+ if(trigger.$target.is(':visible') && ($(e.target).data('target') != trigger.$trigger.data('target'))){
28
29
  trigger.$target.hide()
29
30
  }
30
31
  })
31
32
  }
32
33
  $trigger.on('click', function(e){
33
34
  trigger.$target.toggle()
34
- e.preventDefault()
35
- return false
36
35
  })
37
36
  }
38
37
  }),
@@ -1,3 +1,3 @@
1
1
  module Hooch
2
- VERSION = "0.13.1"
2
+ VERSION = "0.13.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
4
+ version: 0.13.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut