Skip to content

Commit

Permalink
Merge pull request #572 from canjs/557-remove-auto-function-calling-d…
Browse files Browse the repository at this point in the history
…ocumentation

remove mention of auto function calling
  • Loading branch information
michaelzcheng authored Jul 27, 2018
2 parents f9489d4 + cc52058 commit 543ede6
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions docs/expressions/key-lookup.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ Furthermore keys return different values depending on the data type.

In general:

- Functions are called to get their return value. (Use the [can-stache/keys/at `@` operator] to prevent this).
- Keys in helper expression arguments that find observable data return
a [can-compute.computed] that represents the value.
- Keys in other expressions return the value.
Expand All @@ -93,22 +92,6 @@ const data1 = { some: { key: "value" } };
// Helper -> "value"
// Other -> "value"

// A non-observable JS object w/ a function at the end
const data2 = { some: { key: function() {
return "value";
} } };

// Helper -> "value"
// Other -> "value"

// A non-observable JS object with intermediate functions:
const data3 = { some: function() {
return { key: "value" };
} };

// Helper -> "value"
// Other -> "value"

// A observable can-map
const data4 = { some: new Map( { key: "value" } ) };

Expand Down

0 comments on commit 543ede6

Please sign in to comment.