FIX: Allow forceActive without a customHref
This commit is contained in:
parent
60e804ad5c
commit
58b5d1434b
|
@ -187,9 +187,9 @@ NavItem.reopenClass({
|
|||
items.push(item);
|
||||
}
|
||||
|
||||
if (!item.customHref) return;
|
||||
|
||||
item.set("href", item.customHref(category, args));
|
||||
if (item.customHref) {
|
||||
item.set("href", item.customHref(category, args));
|
||||
}
|
||||
|
||||
if (item.forceActive && item.forceActive(category, args)) {
|
||||
item.active = true;
|
||||
|
|
Loading…
Reference in New Issue