Releases: canjs/can-define
Releases · canjs/can-define
hasKey and hasOwnKey support expando properties
Issue #412 - Makes the following work:
var a = new DefineMap({foo: undefined})
canReflect.hasKey(a,"foo") //-> true
Fix getSchema
Issue: #410 - Makes sure custom types are returned by canReflect.getSchema()
bindings do not create Observation Records
value and default work together
This makes default
work with the value
property behavior.
For example:
prop: {
default: 21,
value( {lastSet, resolve} ){
resolve( lastSet.value );
}
}
PR: #398
DefineMap will call overwritten prototype setup methods
Deleted props are still observable
Prevent defining computed properties on the prototype
This prevents setting a DefineMap's computed properties on the prototype, which causes binding issues. This fixes a regression that was introduced in 2.6.0.
Fixes enumerability of prototype properties for Safari
Observable on changes to enumerable properties via defineInstanceKey
Redeploying updated documentation
The last release didn't have the most up-to-date documentation, redeployed.