From 94ef913f98e1f14c5c663f09bdcbbe0c869057e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Jurov=C3=BDch?= Date: Fri, 12 Jul 2013 21:14:52 +0200 Subject: [PATCH] s/self/this in JavaScript --- javascript.html.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript.html.markdown b/javascript.html.markdown index 254163e8..cbe82054 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -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()