Explorar el Código

unnecessary check

Michelle Bu hace 12 años
padre
commit
10211ea88f
Se han modificado 3 ficheros con 2 adiciones y 2 borrados
  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];

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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];

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio