Updated

The Toronto Maple Leafs finally got their first win since the Winter Classic, though it wasn't without its tense moments.

First, the Maple Leafs gave up the lead on a breakaway, and then later had a power-play goal waved off.

However, when Jonathan Bernier stopped New Jersey's Reid Boucher in the shootout, Toronto coach Randy Carlyle and the players got a chance to exhale with a 3-2 victory over the Devils on Sunday night that snapped the Leafs' four-game losing streak.

"Well, we can breathe," Carlyle said. "There's been a lot of gasping going on, and even in this game there was a lot of gasping going on (with) how tight it was. ... Hopefully this relieves a little bit of the stress that's involved for our hockey club."

Plenty of stress had been building up for the Leafs, who hadn't won since beating Detroit on Jan. 1. They still have just two regulation victories in 26 games dating to Nov. 21 and aren't yet back in a playoff spot, but the win brought some relief.

"We'll take any points we can get right now," defenseman Cody Franson said. "We've had some tough bounces lately, and we've put in some efforts that could've went either way, and fortunately tonight we were able to get a couple points due to a shootout. ... It's a little bit of weight off our shoulders."

Bernier made 36 saves on 38 shots in regulation and overtime and stopped all three he faced in the shootout to do his part to end the skid.

James van Riemsdyk and Tyler Bozak had the Leafs' goals in regulation, and van Riemsdyk scored in the shootout to beat a fatigued Devils team playing its third game in four nights.

"I think under the circumstances, that team over there's desperate (and) we were coming in here short-handed and under a tough schedule," New Jersey coach Peter DeBoer said. "I thought we gave them everything they could handle. They're probably pretty fortunate they got two points and we feel a little bit robbed, but that's the game and we've got to pick up and move on to Montreal."

Adam Henrique and Ryane Clowe scored for the Devils (19-19-9), who fell to 0-7 in shootouts this season. Jaromir Jagr, Clowe and Boucher were all unsuccessful in the shootout this time.

"The way we've been in shootouts, let's get it out," Henrique said with a laugh. "I mean, they try things with shootouts, I think everyone has different opinions on it."

Opinions varied during the game, too, especially on the call by referee Ghislain Hebert that negated Bozak's power-play goal at 6:23 of the third period. Hebert ruled that van Riemsdyk interfered with Devils goaltender Cory Schneider.

Carlyle said it was one of those plays it was hard to agree with the official after looking at it on the replay. Van Riemsdyk agreed.

"I was very surprised," said van Riemsdyk, who scored his 17th goal of the season in the second period. "I looked at it after on video in between periods and I'm still kind of wondering. He gave me his thought and I asked him if he could watch it after the game and maybe next time we have a game he can apologize or something because that was pretty brutal."

It would have been Bozak's second of the night and eighth of the season. Instead, it represented another roadblock for the Leafs to overcome.

Earlier in the night, they withstood a 7-1 shot deficit and gave up a breakaway goal to Clowe — his first of the season — 27 seconds after van Riemsdyk scored to give them the lead.

In managing to push the game to overtime and then a shootout, Toronto players were happy to get tangible evidence of the improvement they saw in a loss at Washington on Friday night.

"Our job is to win games," captain Dion Phaneuf said. "We know that the points just keep getting bigger and bigger, and I felt that we stuck with it tonight against a team that played very well."

DeBoer was more than satisfied with his team's effort, saying players competed their butts off.

"The shootout doesn't take away from the effort that we gave tonight," DeBoer said.

Schneider, who made 23 saves on 25 shots, said it was a bit upsetting not to come away with the victory.

On Saturday night, the Devils beat the Florida Panthers with 2 seconds remaining in overtime but couldn't pull off a similar trick against the Leafs.

NOTES: Five Leafs players — Bozak, winger Jerry D'Amigo, defensemen Tim Gleason and Mark Fraser, and goaltender James Reimer — missed Sunday's morning skate with illness. All but Fraser were in the lineup. ... Schneider started for the Devils despite making 29 saves in the OT victory Saturday night at home. Coach Peter DeBoer said it's "always a decision" because of franchise goaltender Martin Brodeur but elected to go with Schneider because of his strong performance against Florida.