prettier - auto
This commit is contained in:
parent
c3cb67cc3a
commit
fd810c9910
|
@ -189,14 +189,14 @@ const _setup = (
|
||||||
binding.fallback,
|
binding.fallback,
|
||||||
binding.source
|
binding.source
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isBound && binding.source === "context") {
|
if (isBound && binding.source === "context") {
|
||||||
initialProps[propName] = !context
|
initialProps[propName] = !context
|
||||||
? propValue
|
? propValue
|
||||||
: getState(context, binding.path, binding.fallback, binding.source)
|
: getState(context, binding.path, binding.fallback, binding.source)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isEventType(propValue)) {
|
if (isEventType(propValue)) {
|
||||||
const handlersInfos = []
|
const handlersInfos = []
|
||||||
for (let event of propValue) {
|
for (let event of propValue) {
|
||||||
|
@ -211,20 +211,18 @@ const _setup = (
|
||||||
if (!paramBinding) {
|
if (!paramBinding) {
|
||||||
resolvedParams[paramName] = () => paramValue
|
resolvedParams[paramName] = () => paramValue
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
let paramValueSource;
|
let paramValueSource
|
||||||
|
|
||||||
if (paramBinding.source === "context") paramValueSource = context;
|
if (paramBinding.source === "context") paramValueSource = context
|
||||||
if (paramBinding.source === "state") paramValueSource = getCurrentState();
|
if (paramBinding.source === "state")
|
||||||
if (paramBinding.source === "context") paramValueSource = context;
|
paramValueSource = getCurrentState()
|
||||||
|
if (paramBinding.source === "context") paramValueSource = context
|
||||||
|
|
||||||
// The new dynamic event parameter bound to the relevant source
|
// The new dynamic event parameter bound to the relevant source
|
||||||
resolvedParams[paramName] = () => getState(
|
resolvedParams[paramName] = () =>
|
||||||
paramValueSource,
|
getState(paramValueSource, paramBinding.path, paramBinding.fallback)
|
||||||
paramBinding.path,
|
|
||||||
paramBinding.fallback
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handlerInfo.parameters = resolvedParams
|
handlerInfo.parameters = resolvedParams
|
||||||
|
@ -260,4 +258,4 @@ const makeHandler = (handlerTypes, handlerInfo) => {
|
||||||
}
|
}
|
||||||
handlerType.execute(parameters)
|
handlerType.execute(parameters)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue