The situation is somewhat like-
var someVar = some_other_function();
someObj.addEventListener(\"click\", function(){
some_function(someVar);
}, false);
<
Other alternative, perhaps not as elegant as the use of bind, but it is valid for events in a loop
for (var key in catalog){
document.getElementById(key).my_id = key
document.getElementById(key).addEventListener('click', function(e) {
editorContent.loadCatalogEntry(e.srcElement.my_id)
}, false);
}
It has been tested for google chrome extensions and maybe e.srcElement must be replaced by e.source in other browsers
I found this solution using the comment posted by Imatoria but I cannot mark it as useful because I do not have enough reputation :D