Skip to content

Commit b21d68b

Browse files
committed
removed leave required on page change for non-ssl non-jsonp.
1 parent c9ddee0 commit b21d68b

21 files changed

Lines changed: 176 additions & 150 deletions

File tree

‎VERSION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.5.4
1+
3.5.41

‎core/pubnub-common.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,9 @@ function PN_API(setup) {
258258
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
259259

260260
// No Leave Patch (Prevent Blocking Leave if Desired)
261-
if (NOLEAVE) return;
261+
if (NOLEAVE) return;
262+
if (!SSL) return;
263+
if (jsonp == '0') return;
262264

263265
if (jsonp != '0') data['callback'] = jsonp;
264266

‎modern/pubnub.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -955,7 +957,7 @@ THE SOFTWARE.
955957
* UTIL LOCALS
956958
*/
957959
var NOW = 1
958-
, PNSDK = 'PubNub-JS-' + 'Modern' + '/' + '3.5.4'
960+
, PNSDK = 'PubNub-JS-' + 'Modern' + '/' + '3.5.41'
959961
, XHRTME = 310000;
960962

961963

‎modern/pubnub.min.js‎

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎node.js/pubnub.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -960,7 +962,7 @@ var NOW = 1
960962
, XHRTME = 310000
961963
, DEF_TIMEOUT = 10000
962964
, SECOND = 1000
963-
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.5.4'
965+
, PNSDK = 'PubNub-JS-' + 'Nodejs' + '/' + '3.5.41'
964966
, crypto = require('crypto')
965967
, XORIGN = 1;
966968

‎phonegap/pubnub.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -955,7 +957,7 @@ THE SOFTWARE.
955957
* UTIL LOCALS
956958
*/
957959
var NOW = 1
958-
, PNSDK = 'PubNub-JS-' + 'Phonegap' + '/' + '3.5.4'
960+
, PNSDK = 'PubNub-JS-' + 'Phonegap' + '/' + '3.5.41'
959961
, XHRTME = 310000;
960962

961963

‎phonegap/pubnub.min.js‎

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sencha/pubnub.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
var NOW = 1
33
, READY = false
44
, READY_BUFFER = []
@@ -259,7 +259,9 @@ function PN_API(setup) {
259259
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
260260

261261
// No Leave Patch (Prevent Blocking Leave if Desired)
262-
if (NOLEAVE) return;
262+
if (NOLEAVE) return;
263+
if (!SSL) return;
264+
if (jsonp == '0') return;
263265

264266
if (jsonp != '0') data['callback'] = jsonp;
265267

@@ -955,7 +957,7 @@ THE SOFTWARE.
955957
* UTIL LOCALS
956958
*/
957959
var NOW = 1
958-
, PNSDK = 'PubNub-JS-' + 'Sencha' + '/' + '3.5.4'
960+
, PNSDK = 'PubNub-JS-' + 'Sencha' + '/' + '3.5.41'
959961
, XHRTME = 310000;
960962

961963

‎sencha/pubnub.min.js‎

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎smart-tv/pubnub.js‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Version: 3.5.4
1+
// Version: 3.5.41
22
/* =-====================================================================-= */
33
/* =-====================================================================-= */
44
/* =-========================= JSON =============================-= */
@@ -409,7 +409,9 @@ function PN_API(setup) {
409409
if (channel.indexOf(PRESENCE_SUFFIX) > 0) return;
410410

411411
// No Leave Patch (Prevent Blocking Leave if Desired)
412-
if (NOLEAVE) return;
412+
if (NOLEAVE) return;
413+
if (!SSL) return;
414+
if (jsonp == '0') return;
413415

414416
if (jsonp != '0') data['callback'] = jsonp;
415417

@@ -1083,7 +1085,7 @@ window['PUBNUB'] || (function() {
10831085
*/
10841086

10851087
var ASYNC = 'async'
1086-
, PNSDK = 'PubNub-JS-' + 'SmartTV' + '/' + '3.5.4';
1088+
, PNSDK = 'PubNub-JS-' + 'SmartTV' + '/' + '3.5.41';
10871089

10881090
/**
10891091
* CONSOLE COMPATIBILITY

0 commit comments

Comments
 (0)