fix: router add() signature, setActivePage typo, connect race condition
- Router.add() now takes 3 params (pattern, title, onEnter) matching app.js usage - Fixed setActiveSidebar → setActivePage in all route callbacks - Removed premature hash-setting from connect.js — app.js now sole navigator (was firing router into a hidden container before showConnected ran) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+2
-2
@@ -18,8 +18,8 @@ var Router = (function () {
|
||||
var viewSelector = null;
|
||||
var currentCleanup = null;
|
||||
|
||||
function add(pattern, title, template, onEnter) {
|
||||
routes.push({ pattern: pattern, title: title, template: template, onEnter: onEnter });
|
||||
function add(pattern, title, onEnter) {
|
||||
routes.push({ pattern: pattern, title: title, onEnter: onEnter });
|
||||
}
|
||||
|
||||
function navigate(hash) {
|
||||
|
||||
Reference in New Issue
Block a user