Skip to content

Releases: canjs/can-view-scope

ScopeKeyData::thisArg is observable

24 Oct 19:55
Compare
Choose a tag to compare

Commit: 870ea2b

Issue: canjs/can-stache#616

Makes stuff like this work: {{ this.todo.isSaving() }}.

IE 11 Compatibility

23 Oct 20:44
Compare
Choose a tag to compare

making scope/foo() walk the scope correctly before calling foo

21 Sep 21:21
Compare
Choose a tag to compare

Adds support for scope/key

19 Sep 18:03
Compare
Choose a tag to compare

This is a minor release, providing support for:

<span>{{scope/person}}</span>

Which is equivalent to:

<span>{{scope.find('person')}}</span>

cloneFromRef includes meta information

17 Sep 02:46
Compare
Choose a tag to compare

notContext scopes are readable using ../

12 Sep 20:26
Compare
Choose a tag to compare

This fixes an issue where object could not be read using ../object in the following example since object is in a "notContext" scope:

{{#each(objects, object=value)}}
    {{#each(../fields, field=value)}}
        {{../object[field]}}
    {{/each}}
{{/each}}

Scope refactor and variable scopes

11 Sep 03:03
Compare
Choose a tag to compare

PR #182

This creates variable scopes which are useful for making for(of) helpers work in stache.

This also refactors to avoid recursively calling set. Now scope walking all happens in _walk.

This passes all downstream tests, but should be used with a bit of caution until we updated some example apps.

Tolerate walking to a scope that doesn't exist

30 Aug 18:27
Compare
Choose a tag to compare

scope.log and able to look up helpers across many TemplateContext

v4.5.0

04 Jul 02:40
Compare
Choose a tag to compare
  • Add support for can-observation@^4.1.0 #179
  • Add compatibility with how webpack builds for production #177
  • Add "use strict" #178