Browse Source

pas2js: fixed arrayRef

git-svn-id: trunk@45335 -
Mattias Gaertner 5 years ago
parent
commit
4afe1de02f
1 changed files with 1 additions and 8 deletions
  1. 1 8
      utils/pas2js/dist/rtl.js

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

@@ -821,9 +821,7 @@ var rtl = {
   },
   },
 
 
   arrayRef: function(a){
   arrayRef: function(a){
-    if (a!=null){
-      rtl.hideProp(a,$pas2jsrefcnt,1);
-    }
+    if (a!=null) rtl.hideProp(a,'$pas2jsrefcnt',1);
     return a;
     return a;
   },
   },
 
 
@@ -911,11 +909,6 @@ var rtl = {
     return true;
     return true;
   },
   },
 
 
-  arrayRef: function(a){
-    if (a!==null) rtl.hideProp(a,'$pas2jsrefcnt',1);
-    return a;
-  },
-
   arrayClone: function(type,src,srcpos,endpos,dst,dstpos){
   arrayClone: function(type,src,srcpos,endpos,dst,dstpos){
     // type: 0 for references, "refset" for calling refSet(), a function for new type()
     // type: 0 for references, "refset" for calling refSet(), a function for new type()
     // src must not be null
     // src must not be null