Browse Source

pas2js: descend pascal class from jsfunction

git-svn-id: trunk@45701 -
Mattias Gaertner 5 năm trước cách đây
mục cha
commit
1adf6c9428
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      utils/pas2js/dist/rtl.js

+ 1 - 1
utils/pas2js/dist/rtl.js

@@ -366,7 +366,7 @@ var rtl = {
       if (newinstancefnname.length>0){
         o = this[newinstancefnname](fn,args);
       } else if(isFunc) {
-        o = new c.$func(args);
+        o = new this.$func(args);
       } else {
         o = Object.create(c);
       }