Previously to 1.4, the "this" in a jQuery.each() loop would output the same thing the valueOfElement in the callback(indexInArray, valueOfElement). In my example I have an array of strings and now in 1.4 "this" outputs some sort of array where each element is a letter. For example:
Version 1.3.2
var arr = [ "one", "two", "three", "four", "five" ];
jQuery.each(arr, function() {
console.log(this); // outputs "one" for example
});
Version 1.4
var arr = [ "one", "two", "three", "four", "five" ];
one 0=o 1=n 2=e" for example
jQuery.each(arr, function() {
console.log(this); // outputs "
});
What's going on?