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 +4 -4
- data/app/assets/javascripts/turbolinks-form-core.js +17 -0
- data/lib/turbolinks/form/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3b3976d13a2c0d9a0b81ffe8876fe0d2ccc0bf76358eaa018cfeab0d5e16f783
|
4
|
+
data.tar.gz: 8cd7fd3a50699e97ccdd8c22c1dd74383472e090798213ee8518b621a4f8dca9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
}
|