Question: ```
var bindShopEvents = function(shopListItem, checkBoxEventHandler) {

    console.log("Binding shop events to their functions");//for testing

    var checkBox = shopListItem.querySelector("input[type=checkbox]");
    var editButton = shopListItem.querySelector("button.edit");
    var deleteButton = shopListItem.querySelector("button.delete");

    editButton.onclick = editList;

    deleteButton.onclick = deleteList;

    checkBox.onchange = checkBoxEventHandler;

}

```

Answer: 
You can add an event handler either using attachEvent (IE9)

So the code that does that would look like this:

```
editButton.attachEvent('onclick', editList);
editButton.addEventListener('click', editList , false);

```

Similarly for other elements that you want to attach events to.
You should call the function with `()` or it will not run.

eg:

```
editButton.onclick = editList();

```

BTW, I'm always using this workaround for event triggers and it works just fine, I never used the `.onclick` method

```
editButton.addEventListener("click", editList());

```