metadata plugin

metadata plugin


-actual code:
if ( !/^{/.test( data ) )    //doesn't work in Firefox 1.0x, not
supported I know but..
data = "{" + data + "}";
eval("data = " + data);        //breaks if packed with variable shrinking
-proposed patch:
if ( data.indexOf( '{' )<0 ) data = "{" + data + "}";
data = eval("(" + data + ")");
Thank you!
-will