Created
August 13, 2014 18:47
Revisions
-
mikob created this gist
Aug 13, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ function Messenger() { } Messenger.prototype.send = function(parcel) { console.log("Handle auditing here"); this._send(parcel); }; function TextMessenger(){ this._send = function(parcel) { console.log("Handle sending text message here: " + parcel); }; } TextMessenger.prototype = new Messenger(); var textMessenger = new TextMessenger(); textMessenger.send("hello there");