|
@@ -353,6 +353,7 @@ var rtl = {
|
|
// create pascal class descendent from JS function
|
|
// create pascal class descendent from JS function
|
|
c = Object.create(ancestor.prototype);
|
|
c = Object.create(ancestor.prototype);
|
|
c.$ancestorfunc = ancestor;
|
|
c.$ancestorfunc = ancestor;
|
|
|
|
+ c.$ancestor = null; // no pascal ancestor
|
|
} else if (ancestor.$func){
|
|
} else if (ancestor.$func){
|
|
// create pascal class descendent from a pascal class descendent of a JS function
|
|
// create pascal class descendent from a pascal class descendent of a JS function
|
|
isFunc = true;
|
|
isFunc = true;
|
|
@@ -360,6 +361,7 @@ var rtl = {
|
|
c.$ancestor = ancestor;
|
|
c.$ancestor = ancestor;
|
|
} else {
|
|
} else {
|
|
c = Object.create(ancestor);
|
|
c = Object.create(ancestor);
|
|
|
|
+ c.$ancestor = null; // no pascal ancestor
|
|
}
|
|
}
|
|
c.$create = function(fn,args){
|
|
c.$create = function(fn,args){
|
|
if (args == undefined) args = [];
|
|
if (args == undefined) args = [];
|