Topic: [Minor] Js errors.
Hi all.
Seems like we can't post tickets on track
Just a minor fix..
Rome wasn't built on a day.
See you,
Jiboo.
Avertissement : assignment to undeclared variable matched
Fichier source : http://127.0.0.1/upload/include/js/common.js
Ligne : 94
Index: include/js/common.js
===================================================================
--- include/js/common.js (revision 927)
+++ include/js/common.js (working copy)
@@ -91,7 +91,7 @@
/* return array of elements for which FN(ARR[i]) is true */
arrayOfMatched: function(fn, arr)
{
- matched = [];
+ var matched = [];
for (var i=0,len=arr.length; i<len; i++)
{
if (fn(arr[i])) matched.push(arr[i])
@@ -101,7 +101,7 @@
/* flattens multi-dimentional arrays into simple arrays */
flatten: function(arr)
{
- flt = [];
+ var flt = [];
for (var i=0,len=arr.length; i<len; i++)
{
if (typeof arr[i] == 'object' && arr.length) {