Skip to content

component does not respect can.compute passed via attributes #540

Closed
@wclr

Description

@wclr

In latest master:

<my-component blocks="blocks"></my-component>

if blocks is can.compute of parent scope it is not passed to component's scope.

It is because of component.js code (line 105)

var computeData = hookupOptions.scope.computeData(value, {args: []}),
     compute = computeData.compute;
...
initalScopeData[name] = compute();

compute() returns undefined

It worked in previous versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions