Skip to content

Commit

Permalink
Fix up some docblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pento committed Jan 24, 2018
1 parent e14171f commit 8943fff
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions editor/components/post-permalink/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,26 +68,17 @@ class PostPermalink extends Component {
return '';
}

/**
* @inheritdoc
*/
componentDidMount() {
this.setState( {
permalink: this.getPermalink(),
slug: this.getSlug(),
} );
}

/**
* @inheritdoc
*/
componentWillUnmount() {
clearTimeout( this.dismissCopyConfirmation );
}

/**
* @inheritdoc
*/
componentWillReceiveProps() {
const slug = this.getSlug();
this.setState( {
Expand Down Expand Up @@ -124,9 +115,9 @@ class PostPermalink extends Component {
this.props.onUpdate( newSlug );
}

/**
/**
* Event handler for the copy button to show feedback.
*/
*/
onCopy() {
this.setState( {
showCopyConfirmation: true,
Expand All @@ -140,9 +131,6 @@ class PostPermalink extends Component {
}, 4000 );
}

/**
* @inheritdoc
*/
render() {
const { isNew, link } = this.props;
const { editingSlug, permalink, slug } = this.state;
Expand Down

0 comments on commit 8943fff

Please sign in to comment.