Skip to content

Commit

Permalink
feat(events): Expose ctx object to the event scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasRitouet authored and ericfong committed Dec 17, 2014
1 parent 235d482 commit c0b39d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ Script.prototype.run = function (ctx, domain, fn) {
data = query;
if(session.emitToAll) session.emitToAll(event, data);
}
}
},
ctx: ctx
};

scriptContext._this = scriptContext['this'];
Expand Down

0 comments on commit c0b39d3

Please sign in to comment.