Skip to content

Commit 651a08b

Browse files
committed
fixes
1 parent de03ddb commit 651a08b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • 1-js/9-prototypes/5-class-inheritance
  • 2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view

1-js/9-prototypes/5-class-inheritance/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ function Animal(name) {
300300

301301
// Методы хранятся в прототипе
302302
Animal.prototype.run = function() {
303-
alert(this + " бежит!")
303+
alert(this.name + " бежит!")
304304
}
305305

306306
*!*
@@ -323,7 +323,7 @@ Rabbit.prototype.constructor = Rabbit;
323323
Rabbit.prototype.run = function() {
324324
// Вызов метода родителя внутри своего
325325
Animal.prototype.run.apply(this);
326-
alert( this + " подпрыгивает!" );
326+
alert( this.name + " подпрыгивает!" );
327327
};
328328

329329
// Готово, можно создавать объекты

2-ui/1-document/9-attributes-and-custom-properties/1-get-user-attribute/solution.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<body>
55

6-
<div data-widget-name="menu">Выберите жанр</div>
6+
<div id="widget" data-widget-name="menu">Выберите жанр</div>
77

88
<script>
99
// ваш код

0 commit comments

Comments
 (0)