The problem is strange: I removed from Array (association) a few elements by splice function, after this I added a few elements and suddenly there were "underfined" elements. Below there is the log (after '//' this my comment to this):
// adding first element; array length = 1
["asdasdasd"] microblog.js:48
// adding second element; array length = 2
["asdasdasd", "asdasdasd"] microblog.js:48
// adding third element; array length = 3
["asdasdasd", "asdasdasd", "asdasdasdqwe"] microblog.js:48
// removing second element; array length = 2
["asdasdasd", "asdasdasdqwe"] microblog.js:66
// removing third element; array length = 1
["asdasdasdqwe"] microblog.js:66
// adding new element; array length = 4
["asdasdasdqwe", undefined × 2, "asdasdqwrevcvxzvvxwfrqeqwewq"]
And this is how I add an element:
(...)
this.list[currId] = text;
(...)
And this is how I remove an element
(...)
this.list.splice(currId, 1);
(...)
How to avoid this undefined elements?