javascript Programming Glossary: generatesuccess
javascript callback function and parameters http://stackoverflow.com/questions/1997531/javascript-callback-function-and-parameters question Use a closure and a function factory function generateSuccess var1 var2 return function res use res var1 and var2 in here.. function res use res var1 and var2 in here xx.Remove 1 generateSuccess val1 val2 What you're passing here is not the generateSuccess.. val1 val2 What you're passing here is not the generateSuccess function but the anonymous function returned by generateSuccess..
|