Browse Source

Update binarypack

ericz 11 years ago
parent
commit
6b3cde8381
3 changed files with 2 additions and 2 deletions
  1. 1 1
      deps/js-binarypack
  2. 1 1
      dist/peer.js
  3. 0 0
      dist/peer.min.js

+ 1 - 1
deps/js-binarypack

@@ -1 +1 @@
-Subproject commit 37b9ea6e44284f071154aa698efb1472b61800c6
+Subproject commit 6d2ef54c2be76a1da0d4635cdb180182d30629fa

+ 1 - 1
dist/peer.js

@@ -353,7 +353,7 @@ Packer.prototype.pack = function(value){
         }
         }
       } else if ('BYTES_PER_ELEMENT' in value){
       } else if ('BYTES_PER_ELEMENT' in value){
         if(binaryFeatures.useArrayBufferView) {
         if(binaryFeatures.useArrayBufferView) {
-          this.pack_bin(value);
+          this.pack_bin(new Uint8Array(value.buffer));
         } else {
         } else {
           this.pack_bin(value.buffer);
           this.pack_bin(value.buffer);
         }
         }

File diff suppressed because it is too large
+ 0 - 0
dist/peer.min.js


Some files were not shown because too many files changed in this diff