changeset 3cdedb644e89 in sao:5.4
details: https://hg.tryton.org/sao?cmd=changeset;node=3cdedb644e89
description:
        Wait for display to complete in Screen.remove

        The returned promise of remove must resolve only when the display of 
the screen
        is complete. Otherwise there is a miss-matching between screen and the 
view.

        issue9022
        review278491003
        (grafted from 57e788408a199ddcbfd13db27066de12ce12a98a)
diffstat:

 src/screen.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 1d72d67b8787 -r 3cdedb644e89 src/screen.js
--- a/src/screen.js     Thu Feb 06 20:48:05 2020 +0100
+++ b/src/screen.js     Mon Feb 10 23:40:51 2020 +0100
@@ -1555,7 +1555,7 @@
                 }
 
                 return jQuery.when.apply(jQuery, prms).then(function() {
-                    this.display().done(function() {
+                    return this.display().done(function() {
                         this.set_cursor();
                     }.bind(this));
                 }.bind(this));

Reply via email to