Author: jablko
Date: Mon Oct 18 16:23:29 2010
New Revision: 8248

Log:
Use closure

Modified:
   trunk/js/dialog.js

Modified: trunk/js/dialog.js
==============================================================================
--- trunk/js/dialog.js  Mon Oct 18 16:22:04 2010        (r8247)
+++ trunk/js/dialog.js  Mon Oct 18 16:23:29 2010        (r8248)
@@ -364,12 +364,10 @@
               };
 
             var myCallback = {
-              success: function (request, response, payload)
+              success: function (request, response)
                 {
-                  
$(payload.hiddenInput).next('input.form-autocomplete').val(response.results[0]);
-                },
-              argument: { 'hiddenInput': hiddenInput }
-            }
+                  
$(hiddenInput).next('input.form-autocomplete').val(response.results[0]);
+                } }
 
             // Set visible input field of yui-autocomplete
             dataSource.sendRequest(null, myCallback);

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to