changeset 57e788408a19 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=57e788408a19
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
diffstat:

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

diffs (12 lines):

diff -r 099f5307d2f8 -r 57e788408a19 src/screen.js
--- a/src/screen.js     Thu Feb 06 20:48:48 2020 +0100
+++ b/src/screen.js     Mon Feb 10 23:40:51 2020 +0100
@@ -1573,7 +1573,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