mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-31 23:26:18 +00:00
Fix bug with event.event.target being undefined (#3683)
This commit is contained in:
parent
bfd09133de
commit
95dbdff08a
@ -30,7 +30,7 @@ Modal.prototype.display = function(title,options) {
|
|||||||
options = options || {};
|
options = options || {};
|
||||||
this.srcDocument = options.variables && (options.variables.rootwindow === "true" ||
|
this.srcDocument = options.variables && (options.variables.rootwindow === "true" ||
|
||||||
options.variables.rootwindow === "yes") ? document :
|
options.variables.rootwindow === "yes") ? document :
|
||||||
(options.event.event ? options.event.event.target.ownerDocument : document);
|
(options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document);
|
||||||
this.srcWindow = this.srcDocument.defaultView;
|
this.srcWindow = this.srcDocument.defaultView;
|
||||||
var self = this,
|
var self = this,
|
||||||
refreshHandler,
|
refreshHandler,
|
||||||
|
Loading…
Reference in New Issue
Block a user