Skip to content

Commit 1eaf501

Browse files
committed
Update jQuery postMessage Transport Plugin to 1.1.1
1 parent 0ed3ef5 commit 1eaf501

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vendor/assets/javascripts/jquery-fileupload/cors/jquery.postmessage-transport.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery postMessage Transport Plugin 1.1
2+
* jQuery postMessage Transport Plugin 1.1.1
33
* https://github.com/blueimp/jQuery-File-Upload
44
*
55
* Copyright 2011, Sebastian Tschan
@@ -9,8 +9,7 @@
99
* http://www.opensource.org/licenses/MIT
1010
*/
1111

12-
/*jslint unparam: true, nomen: true */
13-
/*global define, window, document */
12+
/* global define, window, document */
1413

1514
(function (factory) {
1615
'use strict';
@@ -64,8 +63,9 @@
6463
xhrUpload = options.xhr().upload;
6564
return {
6665
send: function (_, completeCallback) {
66+
counter += 1;
6767
var message = {
68-
id: 'postmessage-transport-' + (counter += 1)
68+
id: 'postmessage-transport-' + counter
6969
},
7070
eventName = 'message.' + message.id;
7171
iframe = $(

0 commit comments

Comments
 (0)