can-map-define
Advanced tools
Comparing version 4.1.0 to 4.1.1
@@ -1524,2 +1524,6 @@ /* jshint asi: false */ | ||
} | ||
}, | ||
parentFunction: function() { | ||
return "parentFunction return value"; | ||
} | ||
@@ -1541,2 +1545,6 @@ }); | ||
} | ||
}, | ||
aFunction: function() { | ||
return "aFunction return value"; | ||
} | ||
@@ -1556,4 +1564,7 @@ }); | ||
equal(canReflect.hasKey(vm, "aFunction"), true, "vm.hasKey('aFunction') true"); | ||
equal(canReflect.hasKey(vm, "parentFunction"), true, "vm.hasKey('parentFunction') true"); | ||
vm.attr('lateProp', 'something'); | ||
equal(canReflect.hasKey(vm, "lateProp"), true, "vm.hasKey('lateProp') true"); | ||
}); |
@@ -374,4 +374,5 @@ var dev = require('can-util/js/dev/dev'); | ||
var defined = this.define && key in this.define; | ||
var exists = this._data && key in this._data; | ||
return defined || exists; | ||
var dataExists = this._data && key in this._data; | ||
var propExists = key in this; | ||
return defined || dataExists || propExists; | ||
} | ||
@@ -378,0 +379,0 @@ }); |
{ | ||
"name": "can-map-define", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "Define rich attribute behavior", | ||
@@ -5,0 +5,0 @@ "homepage": "https://canjs.com", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80693
1658