TORONTO (AP) -- Leo Komarov snapped a tie with 5:34 left, and the Toronto Maple Leafs beat the New York Rangers 5-4 on Saturday night in a game in which both teams struggled with the lead.

Toronto Maple Leafs' Leo Komarov, left, celebrates his goal with teammate Mike Santorelli as New York Rangers goaltender Cam Talbot and Rangers' Carl Hagelin watch during the third period
Toronto Maple Leafs' Leo Komarov, left, celebrates his goal with teammate Mike Santorelli as New York Rangers goaltender Cam Talbot and Rangers' Carl Hagelin watch during the third period (AP Photo/The Canadian Press, Fred Gunn)
loading...

Roman Polak also scored in the third period to lift the Maple Leafs into a 4-4 tie. Phil Kessel, Peter Holland, Richard Panik added goals for Toronto, which squandered a 3-1 lead.

Jonathan Bernier made 31 saves.

Chris Kreider, Mats Zuccarello, Carl Hagelin and Rick Nash scored for New York, and backup goalie Cam Talbot stopped 26 shots. Henrik Lundqvist is expected to be in goal Sunday when the Rangers host Edmonton.

The Maple Leafs will play at Ottawa on Sunday in the makeup of the game postponed on Oct. 22 because of the shootings on Parliament Hill.

Just 53 seconds into his season debut, Derek Stepan beat Holland on a faceoff to give the Rangers possession. Zuccarello tipped Kevin Klein's shot from the point past Bernier to make it 1-0.

Penalties to New York's Conor Allen (roughing) and Carl Hagelin (hooking) put Toronto on a 5-on-3 power play for 1:38. It only took 36 seconds for James van Riemsdyk to find Kessel with a cross-crease pass for his eighth goal of the season at 8:27.

Later in the first, Komarov created the Maple Leafs' second short-handed goal of the season. He got in the passing lane just inside the blue line and took the puck from Matt Hunwick in the neutral zone before fighting off Zuccarello.

Komarov found Holland streaking toward the net for the goal at 15:11 to make it 2-1.

At 18:59, Panik scored on a rebound to give Toronto a two-goal lead. It was Panik's second goal in two games.

The Rangers cut it to 3-2 with 39.9 seconds left in the first when Kreider's shot went between Bernier's pads.

At 17:44 of the second, Stephane Robidas and Jake Gardiner combined for a bad-bounce blunder. Robidas' pass deflected off Gardiner's skate to Dominic Moore and then pinballed to Hagelin, who finished the golden opportunity for his 100th career point.

Nash took advantage of porous net-front coverage to put the Rangers ahead 4-3 at 4:33 of the third. It was Nash's 11th goal of the season, tying Anaheim's Corey Perry for the NHL lead.

It took only until 7:27 for the Leafs to get even again. With David Clarkson screening Talbot, Polak fired from the point for his second of the season.

Komarov's first at 14:26 capped off his impressive night. Gardiner waited out the defense and fed the puck to an open Komarov, who made it 5-4.

With the two-point night, Komarov matched his career high in points (nine) in just the 14th game of the season.

NOTES: During the first period, Johnny Bower was honored on his 90th birthday. The Leafs legend received a framed print signed by players from both teams. ... Leafs forward Daniel Winnik was held out after falling headfirst Thursday night in Colorado. ... Morgan Rielly returned to the Leafs' lineup after being a healthy scratch against Colorado. He replaced Stuart Percy. ... Kessel played in his 600th NHL game. Clarkson appeared in his 500th.

(© 2014 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)

More From New Jersey 101.5 FM