mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-06-25 23:03:15 +00:00
Don't crash for edit enginges that don't support cancelPopups
This commit is contained in:
parent
e752ba7c6a
commit
cb3bec65a1
|
@ -158,7 +158,9 @@ FramedEngine.prototype.focus = function() {
|
||||||
Handle the focus event
|
Handle the focus event
|
||||||
*/
|
*/
|
||||||
FramedEngine.prototype.handleFocusEvent = function(event) {
|
FramedEngine.prototype.handleFocusEvent = function(event) {
|
||||||
this.widget.cancelPopups();
|
if(this.widget.cancelPopups) {
|
||||||
|
this.widget.cancelPopups();
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user