Skip to content

Commit abd8405

Browse files
author
Devendra
committed
fixing some debug code
1 parent 614ede3 commit abd8405

File tree

22 files changed

+36
-106
lines changed

22 files changed

+36
-106
lines changed

core/pubnub-common.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ function PN_API(setup) {
316316
, db = setup['db'] || {'get': function(){}, 'set': function(){}}
317317
, CIPHER_KEY = setup['cipher_key']
318318
, UUID = setup['uuid'] || ( !setup['unique_uuid'] && db && db['get'](SUBSCRIBE_KEY+'uuid') || '')
319-
, USE_INSTANCEID = setup['instance_id'] || true
319+
, USE_INSTANCEID = setup['instance_id'] || false
320320
, INSTANCEID = ''
321321
, _poll_timer
322322
, _poll_timer2;
@@ -1944,12 +1944,7 @@ function PN_API(setup) {
19441944
clearTimeout(_poll_timer);
19451945
clearTimeout(_poll_timer2);
19461946
}
1947-
/*
1948-
console.log(UUID);
1949-
console.log(typeof SELF['uuid']);
1950-
console.log(typeof uuid);
1951-
console.log(typeof UUID);
1952-
*/
1947+
19531948
if (!UUID) UUID = SELF['uuid']();
19541949
if (!INSTANCEID) INSTANCEID = SELF['uuid']();
19551950
db['set']( SUBSCRIBE_KEY + 'uuid', UUID );

modern/pubnub.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function PN_API(setup) {
317317
, db = setup['db'] || {'get': function(){}, 'set': function(){}}
318318
, CIPHER_KEY = setup['cipher_key']
319319
, UUID = setup['uuid'] || ( !setup['unique_uuid'] && db && db['get'](SUBSCRIBE_KEY+'uuid') || '')
320-
, USE_INSTANCEID = setup['instance_id'] || true
320+
, USE_INSTANCEID = setup['instance_id'] || false
321321
, INSTANCEID = ''
322322
, _poll_timer
323323
, _poll_timer2;
@@ -1945,12 +1945,7 @@ function PN_API(setup) {
19451945
clearTimeout(_poll_timer);
19461946
clearTimeout(_poll_timer2);
19471947
}
1948-
/*
1949-
console.log(UUID);
1950-
console.log(typeof SELF['uuid']);
1951-
console.log(typeof uuid);
1952-
console.log(typeof UUID);
1953-
*/
1948+
19541949
if (!UUID) UUID = SELF['uuid']();
19551950
if (!INSTANCEID) INSTANCEID = SELF['uuid']();
19561951
db['set']( SUBSCRIBE_KEY + 'uuid', UUID );

modern/pubnub.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node.js/pubnub.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function PN_API(setup) {
317317
, db = setup['db'] || {'get': function(){}, 'set': function(){}}
318318
, CIPHER_KEY = setup['cipher_key']
319319
, UUID = setup['uuid'] || ( !setup['unique_uuid'] && db && db['get'](SUBSCRIBE_KEY+'uuid') || '')
320-
, USE_INSTANCEID = setup['instance_id'] || true
320+
, USE_INSTANCEID = setup['instance_id'] || false
321321
, INSTANCEID = ''
322322
, _poll_timer
323323
, _poll_timer2;
@@ -1945,12 +1945,7 @@ function PN_API(setup) {
19451945
clearTimeout(_poll_timer);
19461946
clearTimeout(_poll_timer2);
19471947
}
1948-
/*
1949-
console.log(UUID);
1950-
console.log(typeof SELF['uuid']);
1951-
console.log(typeof uuid);
1952-
console.log(typeof UUID);
1953-
*/
1948+
19541949
if (!UUID) UUID = SELF['uuid']();
19551950
if (!INSTANCEID) INSTANCEID = SELF['uuid']();
19561951
db['set']( SUBSCRIBE_KEY + 'uuid', UUID );

phonegap/pubnub.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function PN_API(setup) {
317317
, db = setup['db'] || {'get': function(){}, 'set': function(){}}
318318
, CIPHER_KEY = setup['cipher_key']
319319
, UUID = setup['uuid'] || ( !setup['unique_uuid'] && db && db['get'](SUBSCRIBE_KEY+'uuid') || '')
320-
, USE_INSTANCEID = setup['instance_id'] || true
320+
, USE_INSTANCEID = setup['instance_id'] || false
321321
, INSTANCEID = ''
322322
, _poll_timer
323323
, _poll_timer2;
@@ -1945,12 +1945,7 @@ function PN_API(setup) {
19451945
clearTimeout(_poll_timer);
19461946
clearTimeout(_poll_timer2);
19471947
}
1948-
/*
1949-
console.log(UUID);
1950-
console.log(typeof SELF['uuid']);
1951-
console.log(typeof uuid);
1952-
console.log(typeof UUID);
1953-
*/
1948+
19541949
if (!UUID) UUID = SELF['uuid']();
19551950
if (!INSTANCEID) INSTANCEID = SELF['uuid']();
19561951
db['set']( SUBSCRIBE_KEY + 'uuid', UUID );

phonegap/pubnub.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sencha/pubnub.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function PN_API(setup) {
317317
, db = setup['db'] || {'get': function(){}, 'set': function(){}}
318318
, CIPHER_KEY = setup['cipher_key']
319319
, UUID = setup['uuid'] || ( !setup['unique_uuid'] && db && db['get'](SUBSCRIBE_KEY+'uuid') || '')
320-
, USE_INSTANCEID = setup['instance_id'] || true
320+
, USE_INSTANCEID = setup['instance_id'] || false
321321
, INSTANCEID = ''
322322
, _poll_timer
323323
, _poll_timer2;
@@ -1945,12 +1945,7 @@ function PN_API(setup) {
19451945
clearTimeout(_poll_timer);
19461946
clearTimeout(_poll_timer2);
19471947
}
1948-
/*
1949-
console.log(UUID);
1950-
console.log(typeof SELF['uuid']);
1951-
console.log(typeof uuid);
1952-
console.log(typeof UUID);
1953-
*/
1948+
19541949
if (!UUID) UUID = SELF['uuid']();
19551950
if (!INSTANCEID) INSTANCEID = SELF['uuid']();
19561951
db['set']( SUBSCRIBE_KEY + 'uuid', UUID );

sencha/pubnub.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

smart-tv/pubnub.js

+2-7
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ function PN_API(setup) {
467467
, db = setup['db'] || {'get': function(){}, 'set': function(){}}
468468
, CIPHER_KEY = setup['cipher_key']
469469
, UUID = setup['uuid'] || ( !setup['unique_uuid'] && db && db['get'](SUBSCRIBE_KEY+'uuid') || '')
470-
, USE_INSTANCEID = setup['instance_id'] || true
470+
, USE_INSTANCEID = setup['instance_id'] || false
471471
, INSTANCEID = ''
472472
, _poll_timer
473473
, _poll_timer2;
@@ -2095,12 +2095,7 @@ function PN_API(setup) {
20952095
clearTimeout(_poll_timer);
20962096
clearTimeout(_poll_timer2);
20972097
}
2098-
/*
2099-
console.log(UUID);
2100-
console.log(typeof SELF['uuid']);
2101-
console.log(typeof uuid);
2102-
console.log(typeof UUID);
2103-
*/
2098+
21042099
if (!UUID) UUID = SELF['uuid']();
21052100
if (!INSTANCEID) INSTANCEID = SELF['uuid']();
21062101
db['set']( SUBSCRIBE_KEY + 'uuid', UUID );

0 commit comments

Comments
 (0)