Ticket #1080 (closed defect: wontfix)
Calling this.inherited skips intermediate methods
| Reported by: | guest | Owned by: | sjmiles |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | Core | Version: | 0.3 |
| Severity: | major | Keywords: | |
| Cc: |
Description
Run this code: dojo.lang.declare('MyObject?1', null, {
method1 : function () {
alert('I`m in MyObject?1');
}, method2 : function () { }
});
dojo.lang.declare('MyObject?2', MyObject?1, {
method1 : function () {
alert('Im in MyObject2 and Im not called!');
}, method2 : function () {
this.method1();
}
});
dojo.lang.declare('MyObject?3', MyObject?2, {
method1 : function () {
alert('I`m in MyObject?3'); this.inherited('method1');
}, method2 : function () {
this.inherited('method2');
}
});
new MyObject?3().method2();
I`m expecting three messages are shown, but only two or them really are here: "Im in MyObject3" and "Im in MyObject?1". What happen to "Im in MyObject2 and Im not called!"?
Thanks, Alexander