[REF] qweb: improve generated code in some cases

This commit is contained in:
Géry Debongnie
2019-09-12 09:39:15 +02:00
parent 471fd49063
commit 9b589af75a
6 changed files with 142 additions and 278 deletions
@@ -11,7 +11,6 @@ exports[`props validation props are validated in dev mode (code snapshot) 1`] =
let QWeb = this.constructor;
let parent = context;
let owner = context;
let result;
var h = this.h;
let c1 = [], p1 = {key:1};
var vn1 = h('div', p1, c1);
@@ -45,6 +44,6 @@ exports[`props validation props are validated in dev mode (code snapshot) 1`] =
def3 = def3.then(()=>{if (w4.__owl__.isDestroyed) {return};let pvnode=w4.__owl__.pvnode;c1[_2_index]=pvnode;});
}
extra.promises.push(def3);
return result;
return vn1;
}"
`;