Fixed disconnect() about the return value of Array.splice().