var scoringArr = Array();\r
for (var t in mots) {\r
// get the list of the indices of the files.\r
- var listNumerosDesFicStr = w[mots[t].toString()]; \r
- //alert ("listNumerosDesFicStr "+listNumerosDesFicStr);\r
- var tab = listNumerosDesFicStr.split(",");\r
- //for each file (file's index):\r
- for (var t2 in tab) {\r
- var tmp = '';\r
- var idx = '';\r
- var temp = tab[t2].toString();\r
- if (temp.indexOf('*') != -1){\r
- idx = temp.indexOf('*');\r
- tmp = temp.substring(idx + 3, temp.length);\r
- temp = temp.substring(0,idx);\r
- }\r
- scoringArr.push(tmp);\r
- if (fileAndWordList[temp] == undefined) {\r
- fileAndWordList[temp] = "" + mots[t];\r
- } else {\r
- fileAndWordList[temp] += "," + mots[t];\r
+ var listNumerosDesFicStr = w[mots[t].toString()];\r
+\r
+ if (listNumerosDesFicStr != undefined) {\r
+\r
+ //alert ("listNumerosDesFicStr "+listNumerosDesFicStr);\r
+ var tab = listNumerosDesFicStr.split(",");\r
+ //for each file (file's index):\r
+ for (var t2 in tab) {\r
+ var tmp = '';\r
+ var idx = '';\r
+ var temp = tab[t2].toString();\r
+ if (temp.indexOf('*') != -1) {\r
+ idx = temp.indexOf('*');\r
+ tmp = temp.substring(idx + 3, temp.length);\r
+ temp = temp.substring(0, idx);\r
+ }\r
+ scoringArr.push(tmp);\r
+ if (fileAndWordList[temp] == undefined) {\r
+ fileAndWordList[temp] = "" + mots[t];\r
+ } else {\r
+ fileAndWordList[temp] += "," + mots[t];\r
+ }\r
+ //console.info("fileAndWordList[" + temp + "]=" + fileAndWordList[temp] + " : " + tmp);\r
}\r
- //console.info("fileAndWordList[" + temp + "]=" + fileAndWordList[temp] + " : " + tmp);\r
+\r
}\r
}\r
var fileAndWordListValuesOnly = new Array();\r
return str.replace(new RegExp("[" + chars + "]+$", "g"), "");\r
}\r
\r
-//-------------------------OXYGEN PATCH END-------------------------
\ No newline at end of file
+//-------------------------OXYGEN PATCH END-------------------------\r