MCPcopy Create free account
hub / github.com/ember-learn/ember-api-docs / withHashSupport

Function withHashSupport

app/utils/url-hash-polyfill.js:16–24  ·  view source on GitHub ↗
(AppRouter)

Source from the content-addressed store, hash-verified

14*/
15
16export function withHashSupport(AppRouter) {
17 return class RouterWithHashSupport extends AppRouter {
18 constructor(...args) {
19 super(...args);
20
21 setupHashSupport(this);
22 }
23 };
24}
25
26export function scrollToHash(hash) {
27 let selector = `[name="${hash}"]`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected