Update index2.js
This commit is contained in:
@@ -7,7 +7,6 @@ const effectQueue = new Set();
|
|||||||
let isFlushing = false;
|
let isFlushing = false;
|
||||||
const MOUNTED_NODES = new WeakMap();
|
const MOUNTED_NODES = new WeakMap();
|
||||||
|
|
||||||
// Utilidades internas para reducir repetición de lógica
|
|
||||||
const runWithContext = (effect, callback) => {
|
const runWithContext = (effect, callback) => {
|
||||||
const previousEffect = activeEffect;
|
const previousEffect = activeEffect;
|
||||||
activeEffect = effect;
|
activeEffect = effect;
|
||||||
@@ -396,7 +395,6 @@ const $router = (routes) => {
|
|||||||
return outlet;
|
return outlet;
|
||||||
};
|
};
|
||||||
|
|
||||||
// Extensiones y exportaciones
|
|
||||||
$router.params = $({});
|
$router.params = $({});
|
||||||
$router.to = (path) => (window.location.hash = path.replace(/^#?\/?/, "#/"));
|
$router.to = (path) => (window.location.hash = path.replace(/^#?\/?/, "#/"));
|
||||||
$router.back = () => window.history.back();
|
$router.back = () => window.history.back();
|
||||||
|
|||||||
Reference in New Issue
Block a user