From 66241584e2401528a0c7d3850948a85fa99529cf Mon Sep 17 00:00:00 2001 From: Filip Spiridonov Date: Wed, 27 Feb 2013 12:10:40 +0800 Subject: [PATCH] wrong function name fixed --- page/about-jquery/how-jquery-works.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/page/about-jquery/how-jquery-works.md b/page/about-jquery/how-jquery-works.md index a175d7c4..a980880a 100644 --- a/page/about-jquery/how-jquery-works.md +++ b/page/about-jquery/how-jquery-works.md @@ -183,7 +183,7 @@ $.get( "myhtmlpage.html", myCallBack(param1, param2) ); The reason this fails is that the code executes `myCallBack( param1, param2 )` immediately and then passes the myCallBack's *return value* as the second parameter to `$.get`. -We actually want to pass in `myCallBack` the function, not `myCallBack`'s return value +We actually want to pass in `$.get` the function, not `myCallBack`'s return value (which might or might not be a function). So, how to pass in `myCallBack` *and* include its arguments? #### Right