Created
April 6, 2009 05:34
-
-
Save whatupdave/90644 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
var a = function(){ }; | |
a.prototype.wrong = 'Dave: mayor of wrongville'; | |
var b = function(){}; | |
b.prototype = new a; | |
var c = function(){}; | |
c.prototype = new b; | |
var d = new c; | |
a.prototype.wrong = 'GOD DAMN IT!'; | |
alert(d.wrong); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment