turbolinks-form 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: 8b77ba89542729448f2aadebe15d0c9670177eb3b4e3536bacc952b95e265760
4
- data.tar.gz: 86e38d90648bd666b48d9e764bbde9e1cbbc70a6459baa56f0593ec5b06417d7
3
+ metadata.gz: 3b3976d13a2c0d9a0b81ffe8876fe0d2ccc0bf76358eaa018cfeab0d5e16f783
4
+ data.tar.gz: 8cd7fd3a50699e97ccdd8c22c1dd74383472e090798213ee8518b621a4f8dca9
5
5
  SHA512:
6
- metadata.gz: e02c2aee43939ae74fe3909ad88ae82c5a358347931c138e78c54eb374dc59077ded68c924ea14527591c5b4864c838f305183a20dca1dbc0805326c33df5949
7
- data.tar.gz: 8a9ad6b6dc562279c648fab5e387a17d66553dd07d6aac381561a4a76ced10cab3f9b3436b437ee809adaec7ed8e685c74fbb61c72cacc22382d1920ddd5ef16
6
+ metadata.gz: 8c780004237be2155c5852edee27cf71de8703079bde00d3384a7abcec9f526736d6b582143009a21744ed11b59e5fb9e2dd137522f16c774d56d540abc5c211
7
+ data.tar.gz: d54935e5e5b4bd38f1d0314e45d591475bd9ae69e42a122ef55a8f5b008e3dc1f03e1e1aa4b86b115cd33effc95943152aded16db04f7ba8dd700dd25f1fd406
@@ -221,3 +221,20 @@ TurbolinksForm.on(document, "ajax:beforeSend", "[data-turbolinks-form]", functio
221
221
  // dispatches turbolinks event
222
222
  Turbolinks.dispatch('turbolinks:request-start', {data: {xhr: xhr}});
223
223
  });
224
+
225
+ // Polyfills
226
+
227
+ if (!Element.prototype.matches) {
228
+ Element.prototype.matches =
229
+ Element.prototype.matchesSelector ||
230
+ Element.prototype.mozMatchesSelector ||
231
+ Element.prototype.msMatchesSelector ||
232
+ Element.prototype.oMatchesSelector ||
233
+ Element.prototype.webkitMatchesSelector ||
234
+ function(s) {
235
+ var matches = (this.document || this.ownerDocument).querySelectorAll(s),
236
+ i = matches.length;
237
+ while (--i >= 0 && matches.item(i) !== this) {}
238
+ return i > -1;
239
+ };
240
+ }
@@ -1,5 +1,5 @@
1
1
  module Turbolinks
2
2
  module Form
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbolinks-form
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrique Gubert