Skip to content
This repository has been archived by the owner on Jul 3, 2021. It is now read-only.

Commit

Permalink
Use Object Assign ponyfill instead of private util function
Browse files Browse the repository at this point in the history
  • Loading branch information
thedark1337 committed Aug 25, 2015
1 parent 1371c79 commit 3a26d81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/room.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var util = require('util');
var objectAssign = require('object-assign');
var songHistory = [];

var cacheUsers = {};
Expand Down Expand Up @@ -760,7 +760,7 @@ Room.prototype.setHistory = function(err, data) {
* @returns {booth} The booth meta in an object
*/
Room.prototype.getBoothMeta = function() {
var result = util._extend({}, booth);
var result = objectAssign({}, booth);

// Override ids with full user objects
result.currentDJ = this.getDJ();
Expand All @@ -774,7 +774,7 @@ Room.prototype.getBoothMeta = function() {
* @returns {meta} The room meta in an object
*/
Room.prototype.getRoomMeta = function() {
return util._extend({}, meta);
return objectAssign({}, meta);
};

/**
Expand Down

0 comments on commit 3a26d81

Please sign in to comment.