can-define
Advanced tools
Comparing version 2.3.4 to 2.3.5
@@ -1377,1 +1377,8 @@ var QUnit = require("steal-qunit"); | ||
}); | ||
QUnit.test("ownKeys works on basic DefineMaps", function(){ | ||
var map = new DefineMap({ first: "Jane", last: "Doe" }); | ||
var keys = canReflect.getOwnKeys(map); | ||
QUnit.equal(keys.length, 2, "There are 2 keys"); | ||
}); |
@@ -483,9 +483,11 @@ "use strict"; | ||
var keys = canReflect.getOwnEnumerableKeys(this); | ||
var computedKeys = canReflect.getOwnKeys(this._computed); | ||
if(this._computed) { | ||
var computedKeys = canReflect.getOwnKeys(this._computed); | ||
var key; | ||
for (var i=0; i<computedKeys.length; i++) { | ||
key = computedKeys[i]; | ||
if (keys.indexOf(key) < 0) { | ||
keys.push(key); | ||
var key; | ||
for (var i=0; i<computedKeys.length; i++) { | ||
key = computedKeys[i]; | ||
if (keys.indexOf(key) < 0) { | ||
keys.push(key); | ||
} | ||
} | ||
@@ -492,0 +494,0 @@ } |
{ | ||
"name": "can-define", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"description": "Create observable objects with JS dot operator compatibility", | ||
@@ -5,0 +5,0 @@ "main": "can-define.js", |
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
304862
7275