JavaScript .AddListener (Ustaw niestandardowe parametry

someObj.addEventListener('click', some_function(someVar));

var some_function = function(someVar) {
    return function curried_func(e) {
        // do something here
    }
}
Glamorous Grasshopper