Bug fixed

This commit is contained in:
Luis Fernando Molina committed 2020-03-30 13:24:58 +02:00
1 parent 1edaadd71e
commit dba1318352
2 files changed
+21 -20

No files matched your search

+3 -3
View File
@@ -413,14 +413,14 @@ function newFloatingObject () {
removeFocus()
}
function someoneAquiredFocus (container) {
if (container === undefined) {
function someoneAquiredFocus (floatingObject) {
if (floatingObject === undefined || floatingObject.container === undefined) {
return
}
if (thisObject.container === undefined) {
return
}
if (container.id !== thisObject.container.id) {
if (floatingObject.container.id !== thisObject.container.id) {
removeFocus()
}
}