[jQuery] ie bug ?????

2008-06-26 Thread owidjaya
Hi Everyone, could anyone explain why this gives me an error on ie6. I have the function below in my hilight plugin $.fn.hilight.format = { default: function(txt){ return ''+txt+''; } }; ie6 gives me "Expected identifier,string or number" statement as t

[jQuery] Re: javascript syntax question

2008-06-26 Thread owidjaya
thanks karl that is really clear Karl Rudd wrote: > > > The short: Define and immediately execute an anonymous function. > > The long: > > function blah() { ... } // define a named function > > blah(); // execute a named function > > > function() { ... } // define a function with