Chromium Code Reviews| Index: chrome/browser/resources/settings/settings_page/settings_animated_pages.js |
| diff --git a/chrome/browser/resources/settings/settings_page/settings_animated_pages.js b/chrome/browser/resources/settings/settings_page/settings_animated_pages.js |
| index 574350715c0b614aee8cf2211cb636011b3f8352..4c994bc2aa8d6bd16c100f45d68b500ef49a97ba 100644 |
| --- a/chrome/browser/resources/settings/settings_page/settings_animated_pages.js |
| +++ b/chrome/browser/resources/settings/settings_page/settings_animated_pages.js |
| @@ -127,8 +127,8 @@ Polymer({ |
| var template = Polymer.dom(this).querySelector( |
| 'template[name="' + id + '"]'); |
| - // Do nothing if the subpage is already stamped. |
| - if (template.if) |
| + // Do nothing if the subpage doesn't exist or is already stamped. |
|
Dan Beam
2016/04/11 17:55:15
don't we want to throw if we get to this code and
michaelpg
2016/04/13 02:34:56
I should clarify the comment. The subpage may be i
|
| + if (!template || template.if) |
| return; |
| // Set the subpage's id for use by neon-animated-pages. |