comparison src/implab/declare/override.js @ 6:9663631cbdb9

fix implab/declare/override
author cin
date Tue, 20 Jun 2017 00:33:15 +0300
parents 3d124d0b9078
children
comparison
equal deleted inserted replaced
5:3d124d0b9078 6:9663631cbdb9
8 proxy = function () { 8 proxy = function () {
9 var me = this; 9 var me = this;
10 var inherited = (this.getInherited && this.getInherited(proxy.nom, { 10 var inherited = (this.getInherited && this.getInherited(proxy.nom, {
11 callee: proxy 11 callee: proxy
12 })) || function () {}; 12 })) || function () {};
13
14 inherited.arguments = arguments;
15 13
16 return method.apply(me, [function () { 14 return method.apply(me, [function () {
17 return inherited.apply(me, arguments); 15 return inherited.apply(me, arguments);
18 }].concat(slice.apply(arguments))); 16 }].concat(slice.apply(arguments)));
19 }; 17 };
31 proxy = function () { 29 proxy = function () {
32 var me = this; 30 var me = this;
33 var inherited = (this.getInherited && this.getInherited(proxy.nom, { 31 var inherited = (this.getInherited && this.getInherited(proxy.nom, {
34 callee: proxy 32 callee: proxy
35 })) || function () {}; 33 })) || function () {};
36 34
37 35
38 method.apply(me, arguments); 36 method.apply(me, arguments);
39 return inherited.apply(me, arguments); 37 return inherited.apply(me, arguments);
40 }; 38 };
41 39
42 proxy.method = method; 40 proxy.method = method;
52 proxy = function () { 50 proxy = function () {
53 var me = this; 51 var me = this;
54 var inherited = (this.getInherited && this.getInherited(proxy.nom, { 52 var inherited = (this.getInherited && this.getInherited(proxy.nom, {
55 callee: proxy 53 callee: proxy
56 })) || function () {}; 54 })) || function () {};
57 55
58 inherited.apply(me, arguments); 56 inherited.apply(me, arguments);
59 57
60 return method.apply(me, arguments); 58 return method.apply(me, arguments);
61 }; 59 };
62 60