mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-11-15 14:57:42 +00:00
Fix popup removal
This commit is contained in:
@@ -26,7 +26,7 @@ Popup.prototype.show = function(options) {
|
|||||||
this.title = options.title;
|
this.title = options.title;
|
||||||
this.wiki = options.wiki;
|
this.wiki = options.wiki;
|
||||||
this.anchorDomNode = options.domNode;
|
this.anchorDomNode = options.domNode;
|
||||||
this.rootElement.addEventListener("click",this,true);
|
this.rootElement.addEventListener("click",this,false);
|
||||||
};
|
};
|
||||||
|
|
||||||
Popup.prototype.handleEvent = function(event) {
|
Popup.prototype.handleEvent = function(event) {
|
||||||
@@ -36,7 +36,7 @@ Popup.prototype.handleEvent = function(event) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Popup.prototype.cancel = function() {
|
Popup.prototype.cancel = function() {
|
||||||
this.rootElement.removeEventListener("click",this,true);
|
this.rootElement.removeEventListener("click",this,false);
|
||||||
if(this.title) {
|
if(this.title) {
|
||||||
this.wiki.deleteTiddler(this.title);
|
this.wiki.deleteTiddler(this.title);
|
||||||
this.title = null;
|
this.title = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user