Fix example of calling parent methods

This commit is contained in:
Alexander Myshov 2016-06-03 18:01:15 +06:00
parent 1a3f56701b
commit 43676fe6e9

View File

@ -71,7 +71,7 @@ You can call parent methods (including constructor) from corresponding child one
```
var MyChildClass = MyClass.extend({
initialize: function () {
MyClass.prototype.initialize.call("Yo");
MyClass.prototype.initialize.call(this, "Yo");
},
greet: function (name) {