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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e75d4cd33cf8e2adb3da52ff54b075f43c301f80
4
- data.tar.gz: 8172bd92adfc7d88566c577335bd8f41473a54a8
3
+ metadata.gz: af51547d004fcd24782cd272c5bc42cde126a69b
4
+ data.tar.gz: 88c2fa4e903e973e45c94935c5c3986f287a52c6
5
5
  SHA512:
6
- metadata.gz: ac5006327ce3c965f879bc7819af64039e899ab53b7ef7f9ad4a6cf305fba534e2328928b52f9a1b6cb1dfdfa17b26c884391453f65923aeac4da7769b127ef4
7
- data.tar.gz: 6bd564b6daa0d52b0a9fa4330b9a111a5c45177857ce4ca929923a68657a4eb23401aa60b2a1132c2f78eb458f771bfaaa78aaeb168f741f43456e5ab6b0cf6d
6
+ metadata.gz: 758a8a002140966cf4cabd0c6235303575b774d9f52e7c59edf18ea4cadf0a7a701e853b7e3d3dd010280aaaf5fe49b75d17f6fb1fcfb81c3ac1769ee0507bf4
7
+ data.tar.gz: d5d89e01349f4bbe43f85ac70d983b570d2de18e5aa41b6666aa6bee52073f2f95bff38010734f561035c329531f51bc1387f18e6083f2b27ca04381db1200ec
@@ -1,5 +1,5 @@
1
1
  module Zepto
2
2
  module Rails
3
- VERSION = '0.2.2'
3
+ VERSION = '0.2.3'
4
4
  end
5
5
  end
@@ -1,4 +1,4 @@
1
- /* Zepto v1.1.5 - zepto event ajax form ie - zeptojs.com/license */
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
- settings.crossDomain = (window.location.protocol + '//' + window.location.host) !== (urlAnchor.protocol + '//' + urlAnchor.host)
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 el, name, type, result = [],
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.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 00:00:00.000000000 Z
11
+ date: 2014-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails