diff --git a/src/components/panel/panel.js b/src/components/panel/panel.js index c4d02a70ec9..770b9f824f7 100644 --- a/src/components/panel/panel.js +++ b/src/components/panel/panel.js @@ -26,7 +26,7 @@ angular * @usage * * (function(angular, undefined) { - * ‘use strict’; + * 'use strict'; * * angular * .module('demoApp', ['ngMaterial']) @@ -64,11 +64,9 @@ angular * }); * } * - * function DialogController(MdPanelRef, toppings) { - * var toppings; - * + * function DialogController(MdPanelRef) { * function closeDialog() { - * MdPanelRef && MdPanelRef.close(); + * if (MdPanelRef) MdPanelRef.close(); * } * } * })(angular); @@ -528,8 +526,10 @@ angular * xPosition must be one of the following values available on * $mdPanel.xPosition: * + * * CENTER | ALIGN_START | ALIGN_END | OFFSET_START | OFFSET_END * + *
  *    *************
  *    *           *
  *    *   PANEL   *
@@ -542,12 +542,14 @@ angular
  * C: CENTER
  * D: ALIGN_END (for LTR displays)
  * E: OFFSET_END (for LTR displays)
+ * 
* * yPosition must be one of the following values available on * $mdPanel.yPosition: * * CENTER | ALIGN_TOPS | ALIGN_BOTTOMS | ABOVE | BELOW * + *
  *   F
  *   G *************
  *     *           *
@@ -561,6 +563,7 @@ angular
  * H: CENTER
  * I: ALIGN_BOTTOMS
  * J: ABOVE
+ * 
* * @param {string} xPosition * @param {string} yPosition