Browse Source

pastojs: fixed insert array

git-svn-id: trunk@49209 -
(cherry picked from commit b64d1f9dfd864f981f5af330db6cdc53cf787182)
Mattias Gaertner 4 years ago
parent
commit
adf99f6d50
1 changed files with 2 additions and 1 deletions
  1. 2 1
      utils/pas2js/dist/rtl.js

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

@@ -1042,7 +1042,8 @@ var rtl = {
 
   arrayInsert: function(item, arr, index){
     if (arr){
-      return arr.splice(index,0,item);
+      arr.splice(index,0,item);
+      return arr;
     } else {
       return [item];
     }