Skip to content

Commit

Permalink
Removed process.mixin to comply with Node.js changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
RayMorgan committed Mar 18, 2010
1 parent 7b4f331 commit e4d6ca1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion lib/mu/compiler.js
Expand Up @@ -73,7 +73,7 @@ function RenderEventEmitter(options) {
}
sys.inherits(RenderEventEmitter, process.EventEmitter);

process.mixin(RenderEventEmitter.prototype, {
mixin(RenderEventEmitter.prototype, {
write: function (chunk) {
if (this.closed) {
return;
Expand Down Expand Up @@ -120,3 +120,12 @@ process.mixin(RenderEventEmitter.prototype, {
}
}
});

// Simple shallow object merge.
function mixin(obj1, obj2) {
for (var key in obj2) {
if (obj2.hasOwnProperty(key)) {
obj1[key] = obj2[key];
}
}
}

0 comments on commit e4d6ca1

Please sign in to comment.