Skip to content

Commit

Permalink
fixing 3.2 files
Browse files Browse the repository at this point in the history
  • Loading branch information
geremy cohen committed Sep 4, 2012
1 parent f8aa33f commit 267130b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 29 deletions.
6 changes: 3 additions & 3 deletions javascript/3.2/pubnub-3.2.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ function xdr( setup ) {
* }); * });
*/ */
function ajax( setup ) { function ajax( setup ) {
var xhr var xhr, response
, finished = function() { , finished = function() {
if (loaded) return; if (loaded) return;
loaded = 1; loaded = 1;
Expand Down Expand Up @@ -813,7 +813,7 @@ var PDIV = $('pubnub') || {}
disconnected = 1; disconnected = 1;
disconnect(); disconnect();
} }
timeout( pubnub, SECOND ); timeout( _connect, SECOND );
SELF['time'](function(success){ SELF['time'](function(success){
// Reconnect // Reconnect
if (success && disconnected) { if (success && disconnected) {
Expand Down Expand Up @@ -853,7 +853,7 @@ var PDIV = $('pubnub') || {}
callback( msg, messages ); callback( msg, messages );
} ); } );


timeout( pubnub, 10 ); timeout( _connect, 10 );
} }
}); });
} }
Expand Down
38 changes: 18 additions & 20 deletions javascript/3.2/pubnub-3.2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions javascript/3.2/tests/test.sh
Original file line number Original file line Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash


## ------------------------------------------------ ## ------------------------------------------------
## PubNub 3.1 Real-time Cloud Push API - JAVASCRIPT ## PubNub 3.2 Real-time Cloud Push API - JAVASCRIPT
## ------------------------------------------------ ## ------------------------------------------------


## ---------------------------------------------------- ## ----------------------------------------------------
Expand Down Expand Up @@ -33,9 +33,9 @@ browsers=$browsers',safari/5.1'


echo -e "Testing: $browsers" echo -e "Testing: $browsers"


noinstrument='pubnub-3.1.js,test.js' noinstrument='pubnub-3.2.js,test.js'


tar -cf- test.js ../pubnub-3.1.js | \ tar -cf- test.js ../pubnub-3.2.js | \
curl -u $1 -sSNT- \ curl -u $1 -sSNT- \
"testling.com/?noinstrument=$noinstrument&browsers=$browsers" "testling.com/?noinstrument=$noinstrument&browsers=$browsers"


6 changes: 3 additions & 3 deletions javascript/pubnub-3.2.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ function xdr( setup ) {
* }); * });
*/ */
function ajax( setup ) { function ajax( setup ) {
var xhr var xhr, response
, finished = function() { , finished = function() {
if (loaded) return; if (loaded) return;
loaded = 1; loaded = 1;
Expand Down Expand Up @@ -813,7 +813,7 @@ var PDIV = $('pubnub') || {}
disconnected = 1; disconnected = 1;
disconnect(); disconnect();
} }
timeout( pubnub, SECOND ); timeout( _connect, SECOND );
SELF['time'](function(success){ SELF['time'](function(success){
// Reconnect // Reconnect
if (success && disconnected) { if (success && disconnected) {
Expand Down Expand Up @@ -853,7 +853,7 @@ var PDIV = $('pubnub') || {}
callback( msg, messages ); callback( msg, messages );
} ); } );


timeout( pubnub, 10 ); timeout( _connect, 10 );
} }
}); });
} }
Expand Down
Binary file modified javascript/pubnub-3.2.min.js
Binary file not shown.

0 comments on commit 267130b

Please sign in to comment.