I used class as an example to show what each variable was.
Test code is like this
This function is used to process $.getJSON data
process(data) {
args = data[i].a // data is an array of commands, a = green
$('#text').addClass(args); // does not work
$('#text').addClass(args.toString()); // does work
}
This only started when I upgraded to 1.1.1 it did not happen in
earlier versions.
The problem is this is used in a more dynamic script, In this case
args is a single string but in other cases it might not be, If I have
to call toString() each time I have to make a new process for every
diffrent method combination.
Example of what I am trying to do
$(element)[data[i].m](args);
I did a catch on the error and I am getting a "TypeError c.split is
not a function"
On 2/26/07, Erik Beeson <[EMAIL PROTECTED]> wrote:
> > addClass(json.class) addClass and jquery die with no visible error in
> > firebug
>
> I've found proper exception handling can help track down "no visible
> error" type bugs:
>
> try {
> // code here
> } catch(e) {
> alert("There was a problem with that code: " + e);
> }
>
> But like Karl said, using "class" is probably the problem. Good luck with it.
>
> --Erik
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/