vaporlock

I have a 2015 850 touring, Riding the trails yesterday it started cutting out and backfiring started towing it out until tow unit had batt trouble, got it started and ran it wide open and made it up all the hills. Shut it off to help fix other rig and when restarted it would not go and finished by towing in. When I got home it started and revved up like nothing wrong. would this be a vapor lock issue or a injector plugged up