What is this doing - why unbind and rebind the same function to the same event?