mirror of
https://github.com/google/blockly.git
synced 2026-05-11 06:30:10 +02:00
+1
-1
@@ -387,7 +387,7 @@ Trashcan.prototype.hasContents_ = function() {
|
||||
* @return {boolean} True if the trashcan contents-flyout is currently open.
|
||||
*/
|
||||
Trashcan.prototype.contentsIsOpen = function() {
|
||||
return this.flyout.isVisible();
|
||||
return this.flyout && this.flyout.isVisible();
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user