Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript .addListener( set custom parameters

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

var some_function = function(someVar) {
    return function curried_func(e) {
        // do something here
    }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #set #custom #parameters
ADD COMMENT
Topic
Name
2+5 =