1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-02-25 07:20:02 +00:00

Removing dead code

This commit is contained in:
Jeremy Ruston 2012-10-16 23:06:37 +01:00
parent dd6fddad01
commit 541261f14d

View File

@ -33,16 +33,12 @@ exports.dispatchMessage = function(event) {
event.target.dispatchEvent(buttonEvent); event.target.dispatchEvent(buttonEvent);
}; };
exports.triggerPopup = function(event,cancel) { exports.triggerPopup = function(event) {
// Get the textref of the popup state tiddler // Get the textref of the popup state tiddler
var textRef = this.params.popup; var textRef = this.params.popup;
if(this.hasParameter("qualifyTiddlerTitles") && this.params.qualifyTiddlerTitles === "yes") { if(this.hasParameter("qualifyTiddlerTitles") && this.params.qualifyTiddlerTitles === "yes") {
textRef = "(" + this.parents.join(",") + "," + this.tiddlerTitle + ")" + textRef; textRef = "(" + this.parents.join(",") + "," + this.tiddlerTitle + ")" + textRef;
} }
// Check for cancelling
if(cancel) {
$tw.popup.cancel();
} else {
// Get the current popup state tiddler // Get the current popup state tiddler
var value = this.wiki.getTextReference(textRef,"",this.tiddlerTitle); var value = this.wiki.getTextReference(textRef,"",this.tiddlerTitle);
// Check if the popup is open by checking whether it matches "(<x>,<y>)" // Check if the popup is open by checking whether it matches "(<x>,<y>)"
@ -57,7 +53,6 @@ exports.triggerPopup = function(event,cancel) {
this.tiddlerTitle,true); this.tiddlerTitle,true);
$tw.popup.popup(textRef); $tw.popup.popup(textRef);
} }
}
}; };
exports.setTiddler = function() { exports.setTiddler = function() {