From 80fd563ccc80ad265e054d5110f5c05853e6d683 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Fri, 13 Jul 2012 23:09:45 +0100 Subject: [PATCH] Get rid of obsolete linkcatcher macro --- core/modules/macros/linkcatcher.js | 45 ------------------------------ core/templates/PageTemplate.tid | 2 +- 2 files changed, 1 insertion(+), 46 deletions(-) delete mode 100644 core/modules/macros/linkcatcher.js diff --git a/core/modules/macros/linkcatcher.js b/core/modules/macros/linkcatcher.js deleted file mode 100644 index 16f6d5da5..000000000 --- a/core/modules/macros/linkcatcher.js +++ /dev/null @@ -1,45 +0,0 @@ -/*\ -title: $:/core/modules/macros/linkcatcher.js -type: application/javascript -module-type: macro - -Catches attempts to navigate to links and puts the name of the link into a specified TextReference - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "linkcatcher", - params: { - store: {byName: "default", type: "tiddler"} - } -}; - -exports.handleEvent = function(event) { - if(event.type === "tw-navigate") { - this.wiki.setTextReference(this.params.store,event.navigateTo); - event.stopPropagation(); - return false; - } - return true; -}; - -exports.executeMacro = function() { - var attributes = {}; - if(this.classes) { - attributes["class"] = this.classes.slice(0); - } - for(var t=0; t< +<< <<
{{dropdown-menu tw-suppress-missing-tiddlylink{