mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 12:07:19 +00:00
Removing dead code
This commit is contained in:
parent
dd6fddad01
commit
541261f14d
@ -33,16 +33,12 @@ exports.dispatchMessage = function(event) {
|
||||
event.target.dispatchEvent(buttonEvent);
|
||||
};
|
||||
|
||||
exports.triggerPopup = function(event,cancel) {
|
||||
exports.triggerPopup = function(event) {
|
||||
// Get the textref of the popup state tiddler
|
||||
var textRef = this.params.popup;
|
||||
if(this.hasParameter("qualifyTiddlerTitles") && this.params.qualifyTiddlerTitles === "yes") {
|
||||
textRef = "(" + this.parents.join(",") + "," + this.tiddlerTitle + ")" + textRef;
|
||||
}
|
||||
// Check for cancelling
|
||||
if(cancel) {
|
||||
$tw.popup.cancel();
|
||||
} else {
|
||||
// Get the current popup state tiddler
|
||||
var value = this.wiki.getTextReference(textRef,"",this.tiddlerTitle);
|
||||
// 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);
|
||||
$tw.popup.popup(textRef);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
exports.setTiddler = function() {
|
||||
|
Loading…
Reference in New Issue
Block a user