Changed panel docs as per 0c0w3's suggestions.
authorAtul Varma <varmaa@gmail.com>
Mon, 29 Nov 2010 15:26:53 -0500
changeset 1142 74ea9ac4570d7a4196991711ebfca08126767759
parent 1141 25024ae348a8b4cf8031d895fa741ba818fa725b
child 1143 06e0c5d0d280e20698ecfc8e6bae2a374a3c32f6
push id471
push userbwarner@mozilla.com
push dateTue, 30 Nov 2010 22:30:12 +0000
Changed panel docs as per 0c0w3's suggestions.
packages/addon-kit/docs/panel.md
--- a/packages/addon-kit/docs/panel.md
+++ b/packages/addon-kit/docs/panel.md
@@ -31,17 +31,17 @@ content scripts to load for a panel, and
 scripts via an asynchronous message passing API.
 
 Examples
 --------
 
 Create and show a simple panel with content from the `data/` directory:
 
     const data = require("self").data;
-    let panel = require("panel").Panel({
+    var panel = require("panel").Panel({
       contentURL: data.url("foo.html")
     });
 
     panel.show();
 
 The tutorial section on [web content](#guide/web-content) has a more complex
 example using panels.
 
@@ -138,17 +138,19 @@ property are loaded *after* those specif
 When to load the content scripts.
 Possible values are "start" (default), which loads them as soon as
 the window object for the page has been created, and "ready", which loads
 them once the DOM content of the page has been loaded.
 </api>
 
 <api name="destroy">
 @method
-Destroy the panel, unloading any content that was loaded in it.
+Destroy the panel, unloading any content that was loaded in it. Once
+destroyed, the panel can no longer be used. If you just want to hide
+the panel and might show it later, use `hide` instead.
 </api>
 
 <api name="onMessage">
 @property {array}
 Functions to call when a content script sends the panel a message.
 </api>
 
 <api name="postMessage">