diff --git a/core/modules/macros/hide.js b/core/modules/macros/hide.js deleted file mode 100644 index 663d2be58..000000000 --- a/core/modules/macros/hide.js +++ /dev/null @@ -1,48 +0,0 @@ -/*\ -title: $:/core/modules/macros/hide.js -type: application/javascript -module-type: macro - -A macro that selectively hides its children - -\*/ -(function(){ - -/*jslint node: true, browser: true */ -/*global $tw: false */ -"use strict"; - -exports.info = { - name: "hide", - params: { - tiddler: {byName: "default", type: "tiddler"}, - notequal: {byName: true, type: "text"} - } -}; - -exports.executeMacro = function() { - var attributes = {}, children, text, show = false; - if(this.classes) { - attributes["class"] = this.classes.slice(0); - } - if(this.hasParameter("tiddler")) { - text = this.wiki.getTextReference(this.params.tiddler); - if(this.hasParameter("notequal")) { - if(text === this.params.notequal) { - show = true; - } - } - if(show) { - children = this.content; - for(var t=0; t