I have a problem with a simple battery change fixing the problem. There is no way that could cause your bike to completely quit unless the power lead was shorting out against the frame or the battery completely grounded out internally which could have caused a small fire. You wouldn't have been able to start the bike or use any other accessory like you did in your other posts after it quit.
Don't drive it too far from the dealer.
