Changeset 237481 in webkit
- Timestamp:
- Oct 26, 2018, 1:43:04 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/GeneralStyleDetailsSidebarPanel.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r237436 r237481 1 2018-10-26 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: Uncaught Exception: undefined is not an object (evaluating 'this._classListContainer.children') 4 https://bugs.webkit.org/show_bug.cgi?id=190966 5 6 Reviewed by Joseph Pecoraro. 7 8 * UserInterface/Views/GeneralStyleDetailsSidebarPanel.js: 9 (WI.GeneralStyleDetailsSidebarPanel.prototype.layout): 10 (WI.GeneralStyleDetailsSidebarPanel.prototype._classToggleButtonClicked): 11 (WI.GeneralStyleDetailsSidebarPanel.prototype._populateClassToggles): 12 Don't try to reload the class toggles if the we haven't `layout` yet, as the element won't 13 yet exist. 14 1 15 2018-10-25 Devin Rousso <drousso@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Views/GeneralStyleDetailsSidebarPanel.js
r236766 r237481 105 105 106 106 this._updatePseudoClassCheckboxes(); 107 108 if (!this._classListContainer.hidden) 109 this._populateClassToggles(); 107 this._populateClassToggles(); 110 108 } 111 109 … … 325 323 this._classListContainer.hidden = !this._classListContainer.hidden; 326 324 this._classListContainerToggledSetting.value = !this._classListContainer.hidden; 327 if (this._classListContainer.hidden)328 return;329 330 325 this._populateClassToggles(); 331 326 } … … 354 349 _populateClassToggles() 355 350 { 351 if (!this._classListContainer || this._classListContainer.hidden) 352 return; 353 356 354 // Ensure that _addClassContainer is the first child of _classListContainer. 357 355 while (this._classListContainer.children.length > 1)
Note:
See TracChangeset
for help on using the changeset viewer.