Skip to content

Releases: canjs/can-view-scope

Handle undefined values on not found key warning

23 Aug 18:43
Compare
Choose a tag to compare

This fixes the not found key warning when a property is not defined in the scope:

var scope = new Scope({});

var scopeKeyData = scope.computeData("foo.length", {
   warnOnMissingKey: true
});

scopeKeyData.read();  // -> Unable to find key "foo.length".

#210

Improve the “unable to find key” warning

19 Aug 15:11
Compare
Choose a tag to compare

Improves the missing key warning by logging of the property that can read for example:

var context = { foo: true };

var scope = new Scope(context);
var scopeKeyData = scope.computeData("foo.length", {
   warnOnMissingKey: true
});

scopeKeyData.read();  // -> Unable to find key "foo.length". Found "foo" with value: true

Add links to scope.root deprecation warning

19 Aug 14:35
Compare
Choose a tag to compare

Implement can.setElement symbol

14 Aug 14:54
Compare
Choose a tag to compare

Removing unnecessary properties from LetContext.prototype

09 Jul 16:35
Compare
Choose a tag to compare

Previously the LetContext had properties like one that would prevent you from ever using these keys in a Scope. This removes properties that are not needed from LetContext.prototype and only leaves required properties and Symbols.

#205

QUNIT2 upgrade

28 May 20:23
Compare
Choose a tag to compare

This updates the tests to use QUnit@2.x.x.

#202

scope.args

07 Dec 02:52
Compare
Choose a tag to compare

scope.args added as a "fixed" version of scope.arguments

initialValue should not emit ObservationRecords

29 Nov 21:04
Compare
Choose a tag to compare

Issue: #198

scopeKeyData.initialValue //-> should not emit a observationRecord 

Lazy Initialization and supporting primitive reads

28 Nov 03:05
Compare
Choose a tag to compare

#197 fixes someProperty.split('').reverse().join()

#196 new ScopeKeyData can be passed a warnOnMissingKey option. This will warn if a value is missing. Also, ScopeKeyData is lazy now.

Handle reads during queue execution

02 Nov 20:22
Compare
Choose a tag to compare

Issue: #194

There was a problem with a two-way binding where the parent was undefined and the child had a value:

<my-child childValue:bind="parentValue"/>

A semaphore warning was being produced.