瀏覽代碼

Bump to 0.3.3

ericz 11 年之前
父節點
當前提交
9976990c61
共有 4 個文件被更改,包括 12 次插入7 次删除
  1. 4 0
      changelog.md
  2. 7 6
      dist/peer.js
  3. 0 0
      dist/peer.min.js
  4. 1 1
      package.json

+ 4 - 0
changelog.md

@@ -1,5 +1,9 @@
 # PeerJS Changelog
 
+## Version 0.3.3 (2 Nov 2013)
+* Fix exceptions when peer emits errors upon creation
+* Remove extra commas
+
 ## Version 0.3.2 (25 Oct 2013)
 * Use SCTP in Chrome 31+.
 * Work around Chrome 31+ tab crash. The crashes were due to Chrome's lack of support for the `maxRetransmits` parameter for modifying SDP.

+ 7 - 6
dist/peer.js

@@ -1,4 +1,4 @@
-/*! peerjs.js build:0.3.2, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
+/*! peerjs.js build:0.3.3, development. Copyright(c) 2013 Michelle Bu <michelle@michellebu.com> */
 (function(exports){
 var binaryFeatures = {};
 binaryFeatures.useBlobBuilder = (function(){
@@ -1657,11 +1657,12 @@ Peer.prototype.destroy = function() {
 
 /** Disconnects every connection on this peer. */
 Peer.prototype._cleanup = function() {
-  var peers = Object.keys(this.connections);
-  for (var i = 0, ii = peers.length; i < ii; i++) {
-    this._cleanupPeer(peers[i]);
+  if (this.connections) {
+    var peers = Object.keys(this.connections);
+    for (var i = 0, ii = peers.length; i < ii; i++) {
+      this._cleanupPeer(peers[i]);
+    }
   }
-
   this.emit('close');
 }
 
@@ -2168,7 +2169,7 @@ Negotiator._makeOffer = function(connection) {
           connectionId: connection.id,
           sctp: util.supports.reliable
         },
-        dst: connection.peer,
+        dst: connection.peer
       });
     }, function(err) {
       connection.provider.emit('error', err);

文件差異過大導致無法顯示
+ 0 - 0
dist/peer.min.js


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "peerjs",
-  "version": "0.3.2",
+  "version": "0.3.3",
   "description": "PeerJS client",
   "repository": {
     "type": "git",

部分文件因文件數量過多而無法顯示