aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-25 03:56:11 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-25 03:56:11 +0800
commit6da6540c038640abf75f703a294cb758c6defc47 (patch)
treebf320d263a86da9b0f75358305649f4d00b94265 /packages/react-docs
parentf89b314a94f867fa905a1ce18eba9336ee4d1634 (diff)
parent06ba26a6d30565e7c6c4032528089d30ecc39fdd (diff)
downloaddexon-sol-tools-6da6540c038640abf75f703a294cb758c6defc47.tar
dexon-sol-tools-6da6540c038640abf75f703a294cb758c6defc47.tar.gz
dexon-sol-tools-6da6540c038640abf75f703a294cb758c6defc47.tar.bz2
dexon-sol-tools-6da6540c038640abf75f703a294cb758c6defc47.tar.lz
dexon-sol-tools-6da6540c038640abf75f703a294cb758c6defc47.tar.xz
dexon-sol-tools-6da6540c038640abf75f703a294cb758c6defc47.tar.zst
dexon-sol-tools-6da6540c038640abf75f703a294cb758c6defc47.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/input-fees-rounding
Diffstat (limited to 'packages/react-docs')
-rw-r--r--packages/react-docs/src/components/doc_reference.tsx10
1 files changed, 0 insertions, 10 deletions
diff --git a/packages/react-docs/src/components/doc_reference.tsx b/packages/react-docs/src/components/doc_reference.tsx
index 00b1286a4..85547576b 100644
--- a/packages/react-docs/src/components/doc_reference.tsx
+++ b/packages/react-docs/src/components/doc_reference.tsx
@@ -52,12 +52,6 @@ export interface DocReferenceProps {
export interface DocReferenceState {}
export class DocReference extends React.Component<DocReferenceProps, DocReferenceState> {
- public componentDidMount(): void {
- window.addEventListener('hashchange', this._onHashChanged.bind(this), false);
- }
- public componentWillUnmount(): void {
- window.removeEventListener('hashchange', this._onHashChanged.bind(this), false);
- }
public componentDidUpdate(prevProps: DocReferenceProps, _prevState: DocReferenceState): void {
if (!_.isEqual(prevProps.docAgnosticFormat, this.props.docAgnosticFormat)) {
const hash = window.location.hash.slice(1);
@@ -323,8 +317,4 @@ export class DocReference extends React.Component<DocReferenceProps, DocReferenc
/>
);
}
- private _onHashChanged(_event: any): void {
- const hash = window.location.hash.slice(1);
- sharedUtils.scrollToHash(hash, sharedConstants.SCROLL_CONTAINER_ID);
- }
}