Currently, I am developing an application using Java and JavaScript, and while reviewing some code today, I came across a segment that seemed confusing to me.
var myVariable = (function(configObj){
var width = configObj.width;
var height = configObj.height;
})
gadgetFuncArray.push(myVariable);
It appears to be creating an array of functions, but the purpose of pushing configuration options as an array of functions is unclear to me.
What are your thoughts on this?