Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions solid/js/vendor/simplyedit/simply.everything.js
Original file line number Diff line number Diff line change
Expand Up @@ -556,38 +556,6 @@ properties for a given parent, keep seperate index for this?
}
}

var linkHandler = function(evt) {
if (evt.ctrlKey) {
return;
}
if (evt.which != 1) {
return; // not a 'left' mouse click
}
var link = evt.target;
while (link && link.tagName!='A') {
link = link.parentElement;
}
if (link
&& link.pathname
&& link.hostname==global.location.hostname
&& !link.link
&& !link.dataset.simplyCommand
) {
let path = getPath(link.pathname+link.hash);
if ( !route.has(path) ) {
path = getPath(link.pathname);
}
if ( route.has(path) ) {
let params = runListeners('goto', { path: path});
if (params.path) {
route.goto(params.path);
}
evt.preventDefault();
return false;
}
}
};

var options = {
root: '/'
};
Expand Down Expand Up @@ -642,7 +610,6 @@ properties for a given parent, keep seperate index for this?
route.match(getPath(document.location.pathname));
}
});
global.document.addEventListener('click', linkHandler);
},
load: function(routes) {
parseRoutes(routes);
Expand Down