dmoshal schrieb:
> Karl, using object literals seems to work:
> 
> var a = 
> {
>     foo: function()
>     {
>     }
> }
> 
> function bar (a)
> {
>      $(elem).click (a.foo)
> }
> 
> bar (a)
> 
> 
> Dave

And that of course is exactly the same as this:

function foo() {

}

function bar(a) {
     $(elem).click(a);
}

bar(foo);


-- Klaus

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to