what's this jquery syntax?
Posted
by all-R
on Stack Overflow
See other posts from Stack Overflow
or by all-R
Published on 2010-05-07T17:38:28Z
Indexed on
2010/05/07
17:48 UTC
Read the original article
Hit count: 114
I see that quite often in some Jquery plugins
$('#foo').myPlugin({
foo: 'bar',
bar: 'foo'
});
I'm talking about the {} in the .myPlugin() part. I see quite often anonymous functions like
.click(function(){
});
but the above syntax looks different
thanks for your help!
© Stack Overflow or respective owner