pastojs: fixed create pascal class descendent from a pascal class descendent of a JS function

git-svn-id: trunk@46807 -
This commit is contained in:
Mattias Gaertner 2020-09-09 11:24:56 +00:00
parent 9d3daca70c
commit 342771c0c7

View File

@ -353,6 +353,7 @@ var rtl = {
if (isFunc){
// create pascal class descendent from JS function
c = Object.create(ancestor.prototype);
c.$ancestorfunc = ancestor;
} else if (ancestor.$func){
// create pascal class descendent from a pascal class descendent of a JS function
isFunc = true;
@ -397,7 +398,6 @@ var rtl = {
function f(){}
f.prototype = c;
c.$func = f;
c.$ancestorfunc = ancestor;
}
},