Created
August 13, 2014 18:47
-
-
Save mikob/ef4a7d765ce86a324f36 to your computer and use it in GitHub Desktop.
This file contains 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
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"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment