Thanks for this info. I eventually gave up on the metadata plugin in favor
of a global variable for holding my metadata. So instead of
$('#someID')[0].data, I now just do mynamespace.mydata['someID'].

You mention breaking up the if statement to keep a function call from
happening. Thanks to logical operator short-circuiting, all you have to do
is move this.metaDone to before the function call, like so:

if ( this.metaDone || this.nodeType == 9 || $.isXMLDoc(this) ) return;

See here for more info:
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Operators:Logical_Operators#Short-Circuit_Evaluation

--Erik


On 9/21/07, Diego A. <[EMAIL PROTECTED]> wrote:
>
>
> I've written a short article about Metadata plugin performance issues
> in my blog:
>
> http://fyneworks.blogspot.com/2007/09/jquery-metadata-plugin-performance.html
>
> I was wondering what you guys think about it...
> ...also might help people with the same problem.
>
>

Reply via email to