Index: Source/devtools/front_end/documentation/DocumentationView.js |
diff --git a/Source/devtools/front_end/documentation/DocumentationView.js b/Source/devtools/front_end/documentation/DocumentationView.js |
index 5960b4bb7b2e2d5d425c81cecca02aabd396782e..a4015e36a23a5506097868ddf294b77b799dd3eb 100644 |
--- a/Source/devtools/front_end/documentation/DocumentationView.js |
+++ b/Source/devtools/front_end/documentation/DocumentationView.js |
@@ -217,7 +217,8 @@ WebInspector.DocumentationView.Renderer.prototype = { |
liveUrl.href = examples[i].liveUrl; |
liveUrl.textContent = WebInspector.UIString("Example"); |
} |
- exampleDescription.appendChild(this._renderBlock(examples[i].description)); |
+ if (examples[i].description) |
+ exampleDescription.appendChild(this._renderBlock(examples[i].description)); |
var code = example.createChild("div", "documentation-code"); |
code.classList.add("source-code"); |
code.textContent = examples[i].code; |