mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-09 22:54:51 +03:00
Removed unneccessary feature
This commit is contained in:
parent
c8488ff365
commit
c986d8abd3
|
@ -153,12 +153,6 @@ export class MenuStore {
|
||||||
}
|
}
|
||||||
let item: IMenuItem | undefined;
|
let item: IMenuItem | undefined;
|
||||||
|
|
||||||
// Make jumps possible even if last char in URL is '/'
|
|
||||||
if (id[id.length - 1] === '/') {
|
|
||||||
id = id.slice(0, -1);
|
|
||||||
this.history.replace(id, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
item = this.flatItems.find(i => i.id === id);
|
item = this.flatItems.find(i => i.id === id);
|
||||||
if (item) {
|
if (item) {
|
||||||
this.activateAndScroll(item, false);
|
this.activateAndScroll(item, false);
|
||||||
|
@ -172,7 +166,7 @@ export class MenuStore {
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get section/operation DOM Node related to the item or null if it doesn't exist
|
* get section/operation DOM Node related to the item or null if it doesn't exisgt
|
||||||
* @param idx item absolute index
|
* @param idx item absolute index
|
||||||
*/
|
*/
|
||||||
getElementAt(idx: number): Element | null {
|
getElementAt(idx: number): Element | null {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user