Skip to content

Commit

Permalink
upgraded socket.io to 3.4 plus added fixes to javascript 3.4 with bug…
Browse files Browse the repository at this point in the history
…s on minified version.
  • Loading branch information
stephenlb committed Dec 15, 2012
1 parent 2055a41 commit 50e1fe7
Show file tree
Hide file tree
Showing 115 changed files with 3,970 additions and 42 deletions.
17 changes: 10 additions & 7 deletions javascript/3.4/pubnub-3.4.js
Expand Up @@ -695,18 +695,18 @@ var PDIV = $('pubnub') || {}
if (!presence) return; if (!presence) return;


// Subscribe Presence Channel // Subscribe Presence Channel
SELF.subscribe({ SELF['subscribe']({
channel : channel + PRESENCE_SUFFIX, 'channel' : channel + PRESENCE_SUFFIX,
callback : presence 'callback' : presence
}); });


// Presence Subscribed? // Presence Subscribed?
if (settings.subscribed) return; if (settings.subscribed) return;


// See Who's Here Now // See Who's Here Now
SELF['here_now']({ SELF['here_now']({
channel : channel, 'channel' : channel,
callback : function(here) { 'callback' : function(here) {
each( 'uuids' in here ? here['uuids'] : [], each( 'uuids' in here ? here['uuids'] : [],
function(uuid) { presence( { function(uuid) { presence( {
'action' : 'join', 'action' : 'join',
Expand Down Expand Up @@ -965,7 +965,10 @@ function FDomainRequest() {
} }
FDomainRequest['id'] = SECOND; FDomainRequest['id'] = SECOND;


// For Testling.js - http://testling.com/ // jQuery Interface
typeof module !== 'undefined' && (module['exports'] = PUBNUB) && ready(); window['jQuery'] && (window['jQuery']['PUBNUB'] = PUBNUB);

// For Modern JS + Testling.js - http://testling.com/
typeof(module) !== 'undefined' && (module['exports'] = PUBNUB) && ready();


})(); })();
12 changes: 6 additions & 6 deletions javascript/3.4/pubnub-3.4.min.js

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

Binary file modified javascript/3.4/pubnub-3.4.min.js.gz
Binary file not shown.
4 changes: 3 additions & 1 deletion javascript/build-minify-pubnub
Expand Up @@ -11,7 +11,9 @@ echo -e " USING: $googleminify TO MINIFY..."
echo -e " COMPILING PUBNUB JAVASCRIPT API..." echo -e " COMPILING PUBNUB JAVASCRIPT API..."


cat ./json.js ./pubnub-3.4.js > ./pubnub.tmp cat ./json.js ./pubnub-3.4.js > ./pubnub.tmp
java -jar $googleminify --js=./pubnub.tmp --compilation_level=ADVANCED_OPTIMIZATIONS > ./pubnub-3.4.min.js echo "(function(){" > ./pubnub-3.4.min.js
java -jar $googleminify --js=./pubnub.tmp --compilation_level=ADVANCED_OPTIMIZATIONS >> ./pubnub-3.4.min.js
echo "})();" >> ./pubnub-3.4.min.js


echo -e " >>COMPRESSING<< PUBNUB JAVASCRIPT API..." echo -e " >>COMPRESSING<< PUBNUB JAVASCRIPT API..."
cat ./pubnub-3.4.min.js | gzip -c9 > ./pubnub-3.4.min.js.gz cat ./pubnub-3.4.min.js | gzip -c9 > ./pubnub-3.4.min.js.gz
Expand Down
14 changes: 7 additions & 7 deletions javascript/pubnub-3.4.js
Expand Up @@ -695,18 +695,18 @@ var PDIV = $('pubnub') || {}
if (!presence) return; if (!presence) return;


// Subscribe Presence Channel // Subscribe Presence Channel
SELF.subscribe({ SELF['subscribe']({
channel : channel + PRESENCE_SUFFIX, 'channel' : channel + PRESENCE_SUFFIX,
callback : presence 'callback' : presence
}); });


// Presence Subscribed? // Presence Subscribed?
if (settings.subscribed) return; if (settings.subscribed) return;


// See Who's Here Now // See Who's Here Now
SELF['here_now']({ SELF['here_now']({
channel : channel, 'channel' : channel,
callback : function(here) { 'callback' : function(here) {
each( 'uuids' in here ? here['uuids'] : [], each( 'uuids' in here ? here['uuids'] : [],
function(uuid) { presence( { function(uuid) { presence( {
'action' : 'join', 'action' : 'join',
Expand Down Expand Up @@ -968,7 +968,7 @@ FDomainRequest['id'] = SECOND;
// jQuery Interface // jQuery Interface
window['jQuery'] && (window['jQuery']['PUBNUB'] = PUBNUB); window['jQuery'] && (window['jQuery']['PUBNUB'] = PUBNUB);


// For Testling.js - http://testling.com/ // For Modern JS + Testling.js - http://testling.com/
typeof module !== 'undefined' && (module.exports = PUBNUB) && ready(); typeof(module) !== 'undefined' && (module['exports'] = PUBNUB) && ready();


})(); })();

0 comments on commit 50e1fe7

Please sign in to comment.