Bug 1276341 - remove some misleading import comments; r?jryans draft
authorTom Tromey <tom@tromey.com>
Tue, 12 Jul 2016 08:39:53 -0600
changeset 390227 d048a43096a02770f3d22255899a2d4daead34fa
parent 390225 c050984325e379286c1456a261b0cdc92dab89c1
child 390228 c1d895a34cdb152b752d6ef67a3d3e33abf74987
push id23621
push userbmo:ttromey@mozilla.com
push dateWed, 20 Jul 2016 20:37:37 +0000
reviewersjryans
bugs1276341
milestone50.0a1
Bug 1276341 - remove some misleading import comments; r?jryans MozReview-Commit-ID: 4ARx91saUtF
devtools/client/shared/css-angle.js
devtools/client/shared/css-color.js
devtools/client/shared/output-parser.js
--- a/devtools/client/shared/css-angle.js
+++ b/devtools/client/shared/css-angle.js
@@ -11,17 +11,16 @@ const SPECIALVALUES = new Set([
 ]);
 
 const {getCSSLexer} = require("devtools/shared/css-lexer");
 
 /**
  * This module is used to convert between various angle units.
  *
  * Usage:
- *   let {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
  *   let {angleUtils} = require("devtools/client/shared/css-angle");
  *   let angle = new angleUtils.CssAngle("180deg");
  *
  *   angle.authored === "180deg"
  *   angle.valid === true
  *   angle.rad === "3,14rad"
  *   angle.grad === "200grad"
  *   angle.turn === "0.5turn"
--- a/devtools/client/shared/css-color.js
+++ b/devtools/client/shared/css-color.js
@@ -18,17 +18,16 @@ const SPECIALVALUES = new Set([
   "transparent",
   "unset"
 ]);
 
 /**
  * This module is used to convert between various color types.
  *
  * Usage:
- *   let {require} = Cu.import("resource://devtools/shared/Loader.jsm", {});
  *   let {colorUtils} = require("devtools/shared/css-color");
  *   let color = new colorUtils.CssColor("red");
  *
  *   color.authored === "red"
  *   color.hasAlpha === false
  *   color.valid === true
  *   color.transparent === false // transparent has a special status.
  *   color.name === "red"        // returns hex when no name available.
--- a/devtools/client/shared/output-parser.js
+++ b/devtools/client/shared/output-parser.js
@@ -25,18 +25,16 @@ loader.lazyGetter(this, "DOMUtils", func
 /**
  * This module is used to process text for output by developer tools. This means
  * linking JS files with the debugger, CSS files with the style editor, JS
  * functions with the debugger, placing color swatches next to colors and
  * adding doorhanger previews where possible (images, angles, lengths,
  * border radius, cubic-bezier etc.).
  *
  * Usage:
- *   const {require} =
- *      Cu.import("resource://devtools/shared/Loader.jsm", {});
  *   const {OutputParser} = require("devtools/client/shared/output-parser");
  *
  *   let parser = new OutputParser(document, supportsType);
  *
  *   parser.parseCssProperty("color", "red"); // Returns document fragment.
  *
  * @param {Document} document Used to create DOM nodes.
  * @param {Function} supportsTypes A function that returns a boolean when asked if a css