Skip to content

Releases: canjs/can-view-scope

Remove dev-only comments for updating thisArg

11 Jun 20:18
Compare
Choose a tag to compare

refactoring Scope.prototype.hasKey to avoid using getPathsForKey

11 Jun 16:50
Compare
Choose a tag to compare

Not removing scope.getPathsForKey in production

11 Jun 15:40
Compare
Choose a tag to compare

scope.getPathsForKey should only be used in development-mode, but there is at least one thing using it in production, so leaving it in for now. Will remove it once this has been fixed.

#172.

adding support for scope.vm and scope.top

07 Jun 21:42
Compare
Choose a tag to compare

read returns parentHasKey data

06 Jun 22:59
Compare
Choose a tag to compare
var VM = DefineMap.extend({
  foo: "string"
});
var vm = new VM();
var scope = new Scope(vm);
scope.read("foo").parentHasKey; // -> true

This also makes it so that getPathsForKey will return back paths where the key returns a function.

not including notContext scopes in correct paths

04 Jun 14:40
Compare
Choose a tag to compare

implementing can.hasKey Symbol on Scope.prototype

15 May 16:45
Compare
Choose a tag to compare

Preventing errors in getPathsForKey when a context is not an object

15 May 03:05
Compare
Choose a tag to compare

Better alternatives for scope.root

15 May 01:49
Compare
Choose a tag to compare

This adds two new scope properties:

  • scope.vm - the first context that is a viewModel
  • scope.top - the "top" context that is a viewModel

This also deprecates scope.root in favor of these more explicit properties.

This release also adds scope.getPathsForKey, which will be documented in a future release.

#161

Always show ScopeKeyData slow-path dependency graphs

02 Apr 14:24
Compare
Choose a tag to compare

This shows the "slow-path" graph all the time now for ScopeKeyData.

Here is what it looks like for regular properties (like name):
image

and nested dependencies (like person.name):
image