[CLEANUP] run prettier on the codebase

This commit is contained in:
Géry Debongnie
2020-04-06 13:39:59 +02:00
committed by aab-odoo
parent 8d0d8538ad
commit ddf30a8a97
4 changed files with 20 additions and 9 deletions
+1 -1
View File
@@ -227,7 +227,7 @@ export class Fiber {
}
// In self mode, we *know* we are to take possession of the target
// Hence we manually create the corresponding VNode and copy the "key" in data
const selfVnodeData = fiber.vnode!.data ? {key: fiber.vnode!.data.key} : {};
const selfVnodeData = fiber.vnode!.data ? { key: fiber.vnode!.data.key } : {};
const selfVnode = h(fiber.vnode!.sel, selfVnodeData);
selfVnode.elm = target;
target = selfVnode;
+5 -1
View File
@@ -133,7 +133,11 @@ const UTILS: Utils = {
},
getScope(obj, property: string) {
const obj0 = obj;
while (obj && !obj.hasOwnProperty(property) && !(obj.hasOwnProperty('__access_mode__') && obj.__access_mode__ === 'ro')) {
while (
obj &&
!obj.hasOwnProperty(property) &&
!(obj.hasOwnProperty("__access_mode__") && obj.__access_mode__ === "ro")
) {
const newObj = obj.__proto__;
if (!newObj || isComponent(newObj)) {
return obj0;