mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-05 00:32:13 -08:00
Fix popup removal
This commit is contained in:
parent
7cb65a3816
commit
069bb624e5
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ Popup.prototype.show = function(options) {
|
|||
this.title = options.title;
|
||||
this.wiki = options.wiki;
|
||||
this.anchorDomNode = options.domNode;
|
||||
this.rootElement.addEventListener("click",this,true);
|
||||
this.rootElement.addEventListener("click",this,false);
|
||||
};
|
||||
|
||||
Popup.prototype.handleEvent = function(event) {
|
||||
|
|
@ -36,7 +36,7 @@ Popup.prototype.handleEvent = function(event) {
|
|||
};
|
||||
|
||||
Popup.prototype.cancel = function() {
|
||||
this.rootElement.removeEventListener("click",this,true);
|
||||
this.rootElement.removeEventListener("click",this,false);
|
||||
if(this.title) {
|
||||
this.wiki.deleteTiddler(this.title);
|
||||
this.title = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue