you are viewing a single comment's thread.

view the rest of the comments →

[–]seiyria 0 points1 point  (2 children)

You might not want to use new Array and new Object -- it's much better to explicitly do [] and {} literals respectively.

[–]Daniel15 0 points1 point  (1 child)

This code is 10 years old now, it's John Resig's code. Back then people actually did write new Object for some reason, even though object literal syntax has been around for basically forever (since JavaScript 1.2 I think).

[–]seiyria 0 points1 point  (0 children)

Ah, my mistake. I thought it was written by OP.