瀏覽代碼

pas2js: fixed arrayRef

git-svn-id: trunk@45335 -
Mattias Gaertner 5 年之前
父節點
當前提交
4afe1de02f
共有 1 個文件被更改,包括 1 次插入8 次删除
  1. 1 8
      utils/pas2js/dist/rtl.js

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

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