zepto-for-rails 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zepto/rails/version.rb +1 -1
- data/vendor/assets/javascripts/zepto.js +8 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af51547d004fcd24782cd272c5bc42cde126a69b
|
4
|
+
data.tar.gz: 88c2fa4e903e973e45c94935c5c3986f287a52c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 758a8a002140966cf4cabd0c6235303575b774d9f52e7c59edf18ea4cadf0a7a701e853b7e3d3dd010280aaaf5fe49b75d17f6fb1fcfb81c3ac1769ee0507bf4
|
7
|
+
data.tar.gz: d5d89e01349f4bbe43f85ac70d983b570d2de18e5aa41b6666aa6bee52073f2f95bff38010734f561035c329531f51bc1387f18e6083f2b27ca04381db1200ec
|
data/lib/zepto/rails/version.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/* Zepto v1.1.
|
1
|
+
/* Zepto v1.1.6 - zepto event ajax form ie - zeptojs.com/license */
|
2
2
|
|
3
3
|
var Zepto = (function() {
|
4
4
|
var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,
|
@@ -302,7 +302,6 @@ var Zepto = (function() {
|
|
302
302
|
// JSON => parse if valid
|
303
303
|
// String => self
|
304
304
|
function deserializeValue(value) {
|
305
|
-
var num
|
306
305
|
try {
|
307
306
|
return value ?
|
308
307
|
value == "true" ||
|
@@ -1165,7 +1164,10 @@ window.$ === undefined && (window.$ = Zepto)
|
|
1165
1164
|
xmlTypeRE = /^(?:text|application)\/xml/i,
|
1166
1165
|
jsonType = 'application/json',
|
1167
1166
|
htmlType = 'text/html',
|
1168
|
-
blankRE = /^\s
|
1167
|
+
blankRE = /^\s*$/,
|
1168
|
+
originAnchor = document.createElement('a')
|
1169
|
+
|
1170
|
+
originAnchor.href = window.location.href
|
1169
1171
|
|
1170
1172
|
// trigger a custom event and return false if it was cancelled
|
1171
1173
|
function triggerAndReturn(context, eventName, data) {
|
@@ -1346,7 +1348,8 @@ window.$ === undefined && (window.$ = Zepto)
|
|
1346
1348
|
if (!settings.crossDomain) {
|
1347
1349
|
urlAnchor = document.createElement('a')
|
1348
1350
|
urlAnchor.href = settings.url
|
1349
|
-
|
1351
|
+
urlAnchor.href = urlAnchor.href
|
1352
|
+
settings.crossDomain = (originAnchor.protocol + '//' + originAnchor.host) !== (urlAnchor.protocol + '//' + urlAnchor.host)
|
1350
1353
|
}
|
1351
1354
|
|
1352
1355
|
if (!settings.url) settings.url = window.location.toString()
|
@@ -1513,7 +1516,7 @@ window.$ === undefined && (window.$ = Zepto)
|
|
1513
1516
|
|
1514
1517
|
;(function($){
|
1515
1518
|
$.fn.serializeArray = function() {
|
1516
|
-
var
|
1519
|
+
var name, type, result = [],
|
1517
1520
|
add = function(value) {
|
1518
1521
|
if (value.forEach) return value.forEach(add)
|
1519
1522
|
result.push({ name: name, value: value })
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zepto-for-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stefan Vermaas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|