Ver Fonte

unnecessary check

Michelle Bu há 12 anos atrás
pai
commit
10211ea88f
3 ficheiros alterados com 2 adições e 2 exclusões
  1. 1 1
      dist/peer.js
  2. 0 0
      dist/peer.min.js
  3. 1 1
      lib/socket.js

+ 1 - 1
dist/peer.js

@@ -1837,7 +1837,7 @@ Socket.prototype._handleStream = function(http) {
   var messages = http.responseText.split('\n');
 
   // Check to see if anything needs to be processed on buffer.
-  if (!!http._buffer && http._buffer.length > 0) {
+  if (!!http._buffer) {
     while (http._buffer.length > 0) {
       var index = http._buffer.shift();
       var bufferedMessage = messages[index];

Diff do ficheiro suprimidas por serem muito extensas
+ 0 - 0
dist/peer.min.js


+ 1 - 1
lib/socket.js

@@ -89,7 +89,7 @@ Socket.prototype._handleStream = function(http) {
   var messages = http.responseText.split('\n');
 
   // Check to see if anything needs to be processed on buffer.
-  if (!!http._buffer && http._buffer.length > 0) {
+  if (!!http._buffer) {
     while (http._buffer.length > 0) {
       var index = http._buffer.shift();
       var bufferedMessage = messages[index];

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff