From 290d4d69925c0c8d8d103ffc707fed076df5b6ae Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Fri, 4 Jul 2014 15:45:34 -0500 Subject: [PATCH] Don't crash when joining room 'constructor' --- js/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/client.js b/js/client.js index 3a6a39ba2..dbc3113da 100644 --- a/js/client.js +++ b/js/client.js @@ -998,7 +998,7 @@ *********************************************************/ initializeRooms: function() { - this.rooms = {}; + this.rooms = Object.create(null); // {} $(window).on('resize', _.bind(this.resize, this)); },