Merge pull request #120 from equiet/master

JavaScript: s/self/this
This commit is contained in:
Adam Bard 2013-07-12 14:04:17 -07:00
commit 44e9e4f44b

View File

@ -364,7 +364,7 @@ myObj.meaningOfLife // = 43
// are given when they're created with that constructor and the new keyword.
myConstructor.prototype = {
getMyNumber: function(){
return self.myNumber
return this.myNumber
}
}
var myNewObj2 = new myConstructor()