Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Commit 7cdd32a

Browse files
zbjornsonjelbourn
authored andcommitted
docs(mdPanel): fix formatting of mdPanel docs (#9562)
* Use constant-width formatting for the position guides. * Fix invalid quotation mark (‘’ -> ''). * Fix escaped & problem (&) by changing syntax. * Remove unused variable.
1 parent 19ccc90 commit 7cdd32a

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/components/panel/panel.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ angular
2626
* @usage
2727
* <hljs lang="js">
2828
* (function(angular, undefined) {
29-
* use strict;
29+
* 'use strict';
3030
*
3131
* angular
3232
* .module('demoApp', ['ngMaterial'])
@@ -64,11 +64,9 @@ angular
6464
* });
6565
* }
6666
*
67-
* function DialogController(MdPanelRef, toppings) {
68-
* var toppings;
69-
*
67+
* function DialogController(MdPanelRef) {
7068
* function closeDialog() {
71-
* MdPanelRef && MdPanelRef.close();
69+
* if (MdPanelRef) MdPanelRef.close();
7270
* }
7371
* }
7472
* })(angular);
@@ -528,8 +526,10 @@ angular
528526
* xPosition must be one of the following values available on
529527
* $mdPanel.xPosition:
530528
*
529+
*
531530
* CENTER | ALIGN_START | ALIGN_END | OFFSET_START | OFFSET_END
532531
*
532+
* <pre>
533533
* *************
534534
* * *
535535
* * PANEL *
@@ -542,12 +542,14 @@ angular
542542
* C: CENTER
543543
* D: ALIGN_END (for LTR displays)
544544
* E: OFFSET_END (for LTR displays)
545+
* </pre>
545546
*
546547
* yPosition must be one of the following values available on
547548
* $mdPanel.yPosition:
548549
*
549550
* CENTER | ALIGN_TOPS | ALIGN_BOTTOMS | ABOVE | BELOW
550551
*
552+
* <pre>
551553
* F
552554
* G *************
553555
* * *
@@ -561,6 +563,7 @@ angular
561563
* H: CENTER
562564
* I: ALIGN_BOTTOMS
563565
* J: ABOVE
566+
* </pre>
564567
*
565568
* @param {string} xPosition
566569
* @param {string} yPosition

0 commit comments

Comments
 (0)