sb-styleguide 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -39,7 +39,7 @@ plugin = ($) ->
|
|
39
39
|
#
|
40
40
|
constructor: (el, @content) ->
|
41
41
|
$el = $(el)
|
42
|
-
@sendEvent
|
42
|
+
@sendEvent if !(content.split('|') instanceof Array) then content.split('|') else [content]
|
43
43
|
|
44
44
|
_constructor: SPEvent
|
45
45
|
|
@@ -61,7 +61,7 @@ plugin = ($) ->
|
|
61
61
|
removeData = ($el, ev) ->
|
62
62
|
$el.removeAttr('data-' + ev)
|
63
63
|
$el.removeData(ev)
|
64
|
-
|
64
|
+
|
65
65
|
# SPEvent plugin
|
66
66
|
#
|
67
67
|
$.fn.spEvent = (option, type = "spevent") ->
|
@@ -76,7 +76,7 @@ plugin = ($) ->
|
|
76
76
|
$.fn.spEvent.Constructor = SPEvent
|
77
77
|
|
78
78
|
# Data API
|
79
|
-
#
|
79
|
+
#
|
80
80
|
$ ->
|
81
81
|
$('body').on 'click.spEvent.data-api', '[data-spevent]' , ( e ) ->
|
82
82
|
$this = $(e.target)
|
@@ -87,3 +87,12 @@ plugin = ($) ->
|
|
87
87
|
|
88
88
|
$('[data-spevent-load]').each ->
|
89
89
|
$(this).spEvent null, 'spevent-load'
|
90
|
+
|
91
|
+
|
92
|
+
do ( plugin ) ->
|
93
|
+
if typeof define is 'function' and define.amd
|
94
|
+
# AMD. Register as an anonymous module.
|
95
|
+
define(['jquery'], plugin)
|
96
|
+
else
|
97
|
+
# Browser globals
|
98
|
+
plugin(jQuery)
|
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: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-01-
|
13
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: haml
|
@@ -513,7 +513,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
513
513
|
version: '0'
|
514
514
|
segments:
|
515
515
|
- 0
|
516
|
-
hash:
|
516
|
+
hash: 508744650872052994
|
517
517
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
518
518
|
none: false
|
519
519
|
requirements:
|
@@ -522,7 +522,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
522
522
|
version: '0'
|
523
523
|
segments:
|
524
524
|
- 0
|
525
|
-
hash:
|
525
|
+
hash: 508744650872052994
|
526
526
|
requirements: []
|
527
527
|
rubyforge_project:
|
528
528
|
rubygems_version: 1.8.23
|