fixed mistype 'detach' -> 'detachEvent'

Fixed this for you. :-)