From 651a08b270c1a47198dd46a11618400ee4b71f6d Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Tue, 14 Apr 2015 18:23:13 +0300 Subject: [PATCH] fixes --- 1-js/9-prototypes/5-class-inheritance/article.md | 4 ++-- .../1-get-user-attribute/solution.view/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/1-js/9-prototypes/5-class-inheritance/article.md b/1-js/9-prototypes/5-class-inheritance/article.md index 80cf9349..b21fb4a7 100644 --- a/1-js/9-prototypes/5-class-inheritance/article.md +++ b/1-js/9-prototypes/5-class-inheritance/article.md @@ -300,7 +300,7 @@ function Animal(name) { // Методы хранятся в прототипе Animal.prototype.run = function() { - alert(this + " бежит!") + alert(this.name + " бежит!") } *!* @@ -323,7 +323,7 @@ Rabbit.prototype.constructor = Rabbit; Rabbit.prototype.run = function() { // Вызов метода родителя внутри своего Animal.prototype.run.apply(this); - alert( this + " подпрыгивает!" ); + alert( this.name + " подпрыгивает!" ); }; // Готово, можно создавать объекты diff --git a/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html b/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html index 47a95f5b..1bb9eecc 100644 --- a/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html +++ b/2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html @@ -3,7 +3,7 @@ -
Выберите жанр
+
Выберите жанр