jquery-fileupload-rails 0.4.4 → 0.4.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: 7ab4cb8ac1ba54d195aa9c54319f0aaadceab04f
4
- data.tar.gz: 7aba884fc16627269540aaf6f4bd68744a2edd8f
3
+ metadata.gz: 9e9026dd8a1ef8161bc2f16c346c618724bf14a7
4
+ data.tar.gz: 2e14acd41acdfffb546fc49499f24b1bf47865bf
5
5
  SHA512:
6
- metadata.gz: 8633b864411e62653813318fee0ac68bcff504a7037fc28613e0a244110b3f66e8c5841ad4bca3c8fb87099da38ea5ada8394a3e02157a61847d8bb9c6c2ea77
7
- data.tar.gz: d005f316150fcac5dd5ed84d8085a2bf8cb75c24e9a44d3d4f35882e3c6a15089506c286b809fdbc0bc5f61063a36d08f680c61621d5b7406ea0e799a3f55de6
6
+ metadata.gz: 83b50d93184e70b714857337f4b1df63d44be5666ce3102b352adaa6a776c59354c0133e3b1f7804addcb358eee7b058e7984bb96fd9ae685e42c3e1b3986bbf
7
+ data.tar.gz: 3ee222a90a2f79be6b88b75e4ace9aa2705d5ac1131090ebe7ed8ec6aad8d76e8a594b788e2280dba34546d02922fc15b56b87800d936849a2da008c599f38b8
data/README.md CHANGED
@@ -7,7 +7,7 @@ jquery-fileupload-rails is a library that integrates jQuery File Upload for Rail
7
7
  ## Plugin versions
8
8
 
9
9
  * jQuery File Upload User Interface Plugin 9.6.1
10
- * jQuery File Upload Plugin 5.42.2
10
+ * jQuery File Upload Plugin 5.42.3
11
11
  * jQuery UI Widget 1.11.1+CommonJS
12
12
 
13
13
  ## Installing Gem
@@ -1,5 +1,5 @@
1
1
  /*
2
- * jQuery File Upload Plugin 5.42.2
2
+ * jQuery File Upload Plugin 5.42.3
3
3
  * https://github.com/blueimp/jQuery-File-Upload
4
4
  *
5
5
  * Copyright 2010, Sebastian Tschan
@@ -1344,18 +1344,19 @@
1344
1344
  _initDataAttributes: function () {
1345
1345
  var that = this,
1346
1346
  options = this.options,
1347
- clone = $(this.element[0].cloneNode(false)),
1348
- data = clone.data();
1349
- // Avoid memory leaks:
1350
- clone.remove();
1347
+ data = this.element.data();
1351
1348
  // Initialize options set via HTML5 data-attributes:
1352
1349
  $.each(
1353
- data,
1354
- function (key, value) {
1355
- var dataAttributeName = 'data-' +
1356
- // Convert camelCase to hyphen-ated key:
1357
- key.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
1358
- if (clone.attr(dataAttributeName)) {
1350
+ this.element[0].attributes,
1351
+ function (index, attr) {
1352
+ var key = attr.name.toLowerCase(),
1353
+ value;
1354
+ if (/^data-/.test(key)) {
1355
+ // Convert hyphen-ated key to camelCase:
1356
+ key = key.slice(5).replace(/-[a-z]/g, function (str) {
1357
+ return str.charAt(1).toUpperCase();
1358
+ });
1359
+ value = data[key];
1359
1360
  if (that._isRegExpOption(key, value)) {
1360
1361
  value = that._getRegExp(value);
1361
1362
  }
@@ -1,7 +1,7 @@
1
1
  module JQuery
2
2
  module FileUpload
3
3
  module Rails
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-fileupload-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tors Dalid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-27 00:00:00.000000000 Z
11
+ date: 2015-03-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties