sb-styleguide 0.0.8 → 0.0.9

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.
data/Gemfile.lock CHANGED
@@ -9,7 +9,7 @@ GIT
9
9
  PATH
10
10
  remote: .
11
11
  specs:
12
- sb-styleguide (0.0.7)
12
+ sb-styleguide (0.0.8)
13
13
  actionpack (~> 3.1)
14
14
  activesupport (~> 3.1)
15
15
  compass-rails
@@ -110,9 +110,10 @@ GEM
110
110
  maruku (0.6.0)
111
111
  syntax (>= 1.0.0)
112
112
  mime-types (1.19)
113
- modular-scale (1.0.4)
114
- compass (>= 0.11.5)
115
- sassy-math (>= 1.2)
113
+ modular-scale (1.0.6)
114
+ compass (>= 0.12.1)
115
+ sass (>= 3.2.0)
116
+ sassy-math (>= 1.5)
116
117
  multi_json (1.3.6)
117
118
  polyglot (0.3.3)
118
119
  rack (1.4.1)
@@ -1,5 +1,5 @@
1
1
  module Sb
2
2
  module Styleguide
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
@@ -52,6 +52,7 @@ plugin = ($)->
52
52
  $.fn.gaEvent = ( option , type = "gaevent") ->
53
53
  this.each ->
54
54
  $this = $(@)
55
+ $this = if ($t = $(this)).is("[data-#{type}]") then $t else $t.closest("[data-#{type}]")
55
56
  data = $this.data 'gaeventplugin'
56
57
  if not (eventContent= $this.data type ) then return removeData($this, type)
57
58
  if !data then $this.data 'gaeventplugin', (data = new GAEvent @, eventContent)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sb-styleguide
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: