Skip to content

Commit 3dae378

Browse files
committed
Update nav
1 parent df5e83a commit 3dae378

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

js/nav.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,11 @@ export default class Nav extends View {
3838

3939
/// @private
4040
$set(node) {
41-
const { href } = node;
42-
console.log(node, '=>', href);
41+
const href = node.getAttribute('href');
4342
if (!href || href === '#') {
4443
node.addEventListener('click', (evt) => {
4544
evt.preventDefault();
4645
evt.cancelPropogation();
47-
console.log(EVENT_CLICK, node.parentNode);
4846
this.dispatchEvent(EVENT_CLICK, this, node.parentNode);
4947
});
5048
} else {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@djthorpe/js-framework",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"description": "Javascript UI Framework",
55
"main": "dist/js/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)