1

Topic: [Minor] Js errors.

Hi all.
Seems like we can't post tickets on track hmm
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) {

Re: [Minor] Js errors.

We're not officially accepting bug reports regarding 1.3 yet as everything is still under heavy development. However, I'll poke someone about this.