minor, menuCloseFunction
Fixes 'TypeError: this.saveDrawingSubMenu is undefined'
This commit is contained in:
parent
e0ce5e0096
commit
528a62fa57
2
draw.js
2
draw.js
|
|
@ -1170,7 +1170,7 @@ var DrawingMenu = new Lang.Class({
|
|||
// Since escape key press event can't be captured easily, the job is done in the menu close function.
|
||||
let menuCloseFunc = this.menu.close;
|
||||
this.menu.close = (animate) => {
|
||||
if (this.saveDrawingSubMenu.isOpen)
|
||||
if (this.saveDrawingSubMenu && this.saveDrawingSubMenu.isOpen)
|
||||
this.saveDrawingSubMenu.close();
|
||||
menuCloseFunc.bind(this.menu)(animate);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue