With the new release of jQuery v1.6 and the addition of the .prop()
method.
Is there an inherent difference in using .prop()
over .data()
?
I see in the documentation that not removing a property can result in memory leaks in versions of IE prior to IE9. But are there any other performance issues or other issues with using the new prop()
method?
Syntax from the site:
var $para = $("p");
$para.prop("luggageCode", 1234);
Over the following:
var $para = $("p");
$para.data("luggageCode", 1234);