[IMP] playground: update owl

This commit is contained in:
Géry Debongnie
2019-04-26 15:33:13 +02:00
parent 02a0edb754
commit 791101e394
+6 -3
View File
@@ -1088,10 +1088,13 @@
_patch(vnode) { _patch(vnode) {
this.__owl__.renderPromise = null; this.__owl__.renderPromise = null;
if (this.__owl__.vnode) { if (this.__owl__.vnode) {
const snapshot = this.willPatch(); const isMounted = this.__owl__.isMounted;
const snapshot = isMounted && this.willPatch();
this.__owl__.vnode = patch(this.__owl__.vnode, vnode); this.__owl__.vnode = patch(this.__owl__.vnode, vnode);
if (isMounted) {
this.patched(snapshot); this.patched(snapshot);
} }
}
else { else {
this.__owl__.vnode = patch(document.createElement(vnode.sel), vnode); this.__owl__.vnode = patch(document.createElement(vnode.sel), vnode);
} }
@@ -2441,8 +2444,8 @@
exports.Store = Store; exports.Store = Store;
exports._version = '0.8.0'; exports._version = '0.8.0';
exports._date = '2019-04-26T12:23:18.193Z'; exports._date = '2019-04-26T13:32:23.079Z';
exports._hash = 'b6bd0f9'; exports._hash = 'b44f274';
exports._url = 'https://github.com/odoo/owl'; exports._url = 'https://github.com/odoo/owl';
}(this.owl = this.owl || {})); }(this.owl = this.owl || {}));