Bug 1089547: fix error passing in MozLoopAPI and remove leftover in LoopRooms. r=Standard8

This commit is contained in:
Mike de Boer 2014-10-29 17:01:26 +01:00
parent 7b36254e8a
commit 952154e9c5
2 changed files with 1 additions and 2 deletions

View File

@ -88,7 +88,6 @@ let LoopRoomsInternal = {
// Next, request the detailed information for each room. If the request // Next, request the detailed information for each room. If the request
// fails the room data will not be added to the map. // fails the room data will not be added to the map.
for (let room of roomsList) { for (let room of roomsList) {
let eventName = this.rooms.has(room.roomToken) ? "update" : "add";
this.rooms.set(room.roomToken, room); this.rooms.set(room.roomToken, room);
yield LoopRooms.promise("get", room.roomToken); yield LoopRooms.promise("get", room.roomToken);
} }

View File

@ -77,7 +77,7 @@ const cloneValueInto = function(value, targetWindow) {
// Strip Function properties, since they can not be cloned across boundaries // Strip Function properties, since they can not be cloned across boundaries
// like this. // like this.
for (let prop of value) { for (let prop of Object.getOwnPropertyNames(value)) {
if (typeof value[prop] == "function") { if (typeof value[prop] == "function") {
delete value[prop]; delete value[prop];
} }