Fixed undefied issue in chrome for dataTransfer