fixed each binder when using optgroups

`@marker.parentNode` will not work if you are using optgroup nodes.

fiddle to demonstrate the fix: http://jsfiddle.net/AG6us/