Trump was never in danger of losing a state with R +5 voter registration advantage.
Actually, he was. The problem was fourfold:
1) McCain spent tons of money to run negative ads to win his primary, which soured Republican voters.
2) We have a large Mormon population, Romney's Egg McMuffin pulled some votes.
3) There were two liberal ballot measures, Legal Weed (fail) and Minimum Wage (passed) which drew young voters away from their bongs long enough to vote.
4) Soros dumped tens of millions of dollars to defeat Sheriff Joe which helped liberal turnout.
The good news is that these factors won't weigh next Presidential election. Marijuana, McVain, McMuffin and Sheriff Joe won't be on the ballot.