read

  • function
can.view.Scope.read  

Deprecated 2.1

You should use [can.compute.read] instead of this function.

Scope.read(parent, reads, options)

Parameters

  1. parent {*}

    A parent object to read properties from.

  2. reads {Array<String>}

    An array of properties to read.

  3. options {readOptions}

    Configures how to read properties and values and register callbacks

Returns

{Object}

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.