Skip to content

Instantly share code, notes, and snippets.

View rngadam's full-sized avatar
💭
coderbunker.ca

Ricky Ng-Adam rngadam

💭
coderbunker.ca
View GitHub Profile
@Fedia
Fedia / event_extension.js
Created November 16, 2012 17:47
Extending Deployd Event's domain
(function(Script) {
var _run = Script.prototype.run;
Script.prototype.run = function(ctx, domain, fn) {
if (typeof domain === 'object') {
domain.require = function(module) {
return require(module);
};
domain.context = function() { // access Context via context()
return ctx;
};