Fix example of calling parent methods
This commit is contained in:
parent
1a3f56701b
commit
43676fe6e9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user