evil-front 0.3.4 → 0.3.5

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: dac3af1ab6c5c7d20ff843a7f619e8dab0bc72eb
4
- data.tar.gz: 7226a706f77f65f141318c5b09a262fbb808f17a
3
+ metadata.gz: ba55945f1cb274a3d38c7f889d313003b655183a
4
+ data.tar.gz: 178093d89c225102612fed3db08386c6509d1384
5
5
  SHA512:
6
- metadata.gz: 51c3c41d498002ff1c054f76be6145a12d493d620e2b6f8af8d4c5e2856dd6cfc9be13238fc8fd1680dc94a6760e82f4c1e75741f6195c2b46d3eef427f1e969
7
- data.tar.gz: 087caae7b5b4d34f5ac2b0c653350d02d5fcd50cb30e0e780c12596a59f0d7b3781be8dfd9a3eedbe1d582524307ebe0dd47511be5b1d8453252c8ca5d4e467f
6
+ metadata.gz: d3d1e7166034f87df59b88da4f62add0c30900d102bc06f5320a0a4112da16c91ca749869a541df9193216f225a8833b6b4a0ff82dd25e60ebf770d86e2402da
7
+ data.tar.gz: d212df5fee7afd603674eba0cd6cc471944badd250d5aec0d45ee953b7078a9a14a8610158f817aaf3807edd530d064f5f565e51e50cd0f6be38ec94dcf26643
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.3.5
2
+
3
+ * `$.fn.evil.ajax` and `$.fn.evil.tappable` return element’s jQuery node
4
+ to be used in chains.
5
+
1
6
  ## 0.3.4
2
7
 
3
8
  * Add `no_site` option to `title` helper.
@@ -1,6 +1,7 @@
1
1
  //= evil-front/jquery
2
2
 
3
3
  // Change selected form to be sent by AJAX.
4
+ // It returns jQuery node of form for chains.
4
5
  //
5
6
  // $('form').evil.ajax
6
7
  // success: -> message('success')
@@ -13,7 +14,7 @@ evil.$.extend('ajax', function (opts) {
13
14
  opts = { };
14
15
  }
15
16
 
16
- this.submit(function (event) {
17
+ return this.submit(function (event) {
17
18
  if ( event.isPropagationStopped() ) {
18
19
  return false;
19
20
  }
@@ -1,7 +1,7 @@
1
1
  //= require evil-front/jquery
2
2
 
3
3
  // Add events to add special class on touch events. It will much faster, than
4
- // `:hover` selector.
4
+ // `:hover` selector. It returns jQuery node of element for chains.
5
5
  //
6
6
  // By default it add listener to all links and inputs on body.
7
7
  // But you can add it to any elements:
@@ -37,6 +37,7 @@
37
37
  this.on('touchstart', start);
38
38
  this.on('touchend touchmove', end);
39
39
  }
40
+ return this;
40
41
  }
41
42
  });
42
43
 
@@ -1,3 +1,3 @@
1
1
  module EvilFront
2
- VERSION = '0.3.4' unless defined? EvilFront::VERSION
2
+ VERSION = '0.3.5' unless defined? EvilFront::VERSION
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evil-front
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-17 00:00:00.000000000 Z
11
+ date: 2014-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n