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

Commit f8c0b31

Browse files
committed
docs(mdPanel): fix quote char, &s, unused var
* Fix invalid quotation mark (‘’ -> ''). * Fix escaped & problem (&) by changing syntax. * Remove unused variable.
1 parent 70c146f commit f8c0b31

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

src/components/panel/panel.js

Lines changed: 8 additions & 10 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);
@@ -526,11 +524,11 @@ angular
526524
* chosen; the last position will be chose whether it is on-screen or not.
527525
*
528526
* xPosition must be one of the following values available on
529-
* $mdPanel.xPosition:
527+
* $mdPanel.xPosition:
530528
*
531529
*
532530
* CENTER | ALIGN_START | ALIGN_END | OFFSET_START | OFFSET_END
533-
*
531+
*
534532
* <pre>
535533
* *************
536534
* * *
@@ -543,14 +541,14 @@ angular
543541
* B: ALIGN_START (for LTR displays)
544542
* C: CENTER
545543
* D: ALIGN_END (for LTR displays)
546-
* E: OFFSET_END (for LTR displays)
544+
* E: OFFSET_END (for LTR displays)
547545
* </pre>
548546
*
549547
* yPosition must be one of the following values available on
550548
* $mdPanel.yPosition:
551549
*
552550
* CENTER | ALIGN_TOPS | ALIGN_BOTTOMS | ABOVE | BELOW
553-
*
551+
*
554552
* <pre>
555553
* F
556554
* G *************
@@ -564,7 +562,7 @@ angular
564562
* G: ALIGN_TOPS
565563
* H: CENTER
566564
* I: ALIGN_BOTTOMS
567-
* J: ABOVE
565+
* J: ABOVE
568566
* </pre>
569567
*
570568
* @param {string} xPosition

0 commit comments

Comments
 (0)