Created
November 20, 2011 15:01
-
-
Save Raynos/1380333 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var events = require('events'); | |
var util = require('util'); | |
var pd = require("pd"); | |
pd.extendNatives(true); | |
var Test = { | |
Hello: pd.make(events.EventEmitter.prototype, { | |
World: function () { console.log("hello world"); | |
}) | |
} | |
var t = Test.beget(); | |
var h = t.Hello.beget(); | |
h.World(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment