jquery-watcher 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +5 -3
- data/assets/javascripts/jquery-watcher/watcher.coffee +3 -4
- data/lib/jquery/watcher/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f9d4a88022661e9f453d660283905ad1d370b1f
|
4
|
+
data.tar.gz: dd29de9393779f0c343aa1e3e5e1df6481703234
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fcd5d32d227bdcad3291ffe57b0516bfdd370b747033f0df2248781c675b8dccc03eedfe23026d586650f57eacc7f1b68154c7bdcb384a0d06fb14bd55747d85
|
7
|
+
data.tar.gz: 4426b8694592cc9367a917de6bd7ef2d50817862e1a05d6087e2ba4217c3462f487992960cc63d56b38100f34b012d3c954c0a5297408f659779279d2d691b56
|
data/CHANGELOG.md
ADDED
data/README.md
CHANGED
@@ -29,9 +29,11 @@ Finally add it to your _application.js_:
|
|
29
29
|
|
30
30
|
## Usage
|
31
31
|
|
32
|
-
|
33
|
-
|
34
|
-
|
32
|
+
```coffeescript
|
33
|
+
$.watcher.add 'a.fancy', (element) ->
|
34
|
+
element.click ->
|
35
|
+
alert('Awesome')
|
36
|
+
```
|
35
37
|
|
36
38
|
## Contributing
|
37
39
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
class @JqueryWatcher
|
2
|
-
|
2
|
+
observer: new JqueryDOMObserver
|
3
3
|
|
4
|
-
|
4
|
+
add: (selector, callback) ->
|
5
5
|
id = Math.floor(Math.random() * 10000000000000001)
|
6
6
|
|
7
7
|
register = (element) ->
|
@@ -23,5 +23,4 @@ class @JqueryWatcher
|
|
23
23
|
register(element)
|
24
24
|
|
25
25
|
|
26
|
-
jQuery['
|
27
|
-
JqueryWatcher.watch(selector, callback)
|
26
|
+
jQuery['watcher'] = new JqueryWatcher
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-watcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Florian Schwab
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-rails
|
@@ -61,6 +61,7 @@ extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
63
|
- ".gitignore"
|
64
|
+
- CHANGELOG.md
|
64
65
|
- Gemfile
|
65
66
|
- LICENSE.txt
|
66
67
|
- README.md
|