can
Version:
MIT-licensed, client-side, JavaScript framework that makes building rich web applications easy.
21 lines (14 loc) • 727 B
Markdown
view.Scope.read read
can.view.Scope.static
{2.1} You should use [can.compute.read] instead of this function.
`Scope.read(parent, reads, options)`
{*} parent A parent object to read properties from.
{Array<String>} reads An array of properties to read.
{can.view.Scope.readOptions} options Configures
how to read properties and values and register callbacks
{{value: *, parent: *}} Returns an object that
provides the value and parent object.
{*} value The value found by reading `reads` properties. If
no value was found, value will be undefined.
{*} parent The most immediate parent object of the value specified by `key`.
can.