can-key-tree
Advanced tools
Comparing version 0.0.3 to 0.1.0
@@ -229,1 +229,7 @@ var QUnit = require('steal-qunit'); | ||
}); | ||
QUnit.test("empty deep", function(){ | ||
var keyTree = new KeyTree([Object, Object, Object, Array]); | ||
QUnit.deepEqual( keyTree.get("foo"), []); | ||
}); |
@@ -55,2 +55,5 @@ var reflect = require("can-reflect"); | ||
function getDeep(item, items, depth, maxDepth) { | ||
if(!item) { | ||
return; | ||
} | ||
if(maxDepth === depth) { | ||
@@ -57,0 +60,0 @@ if(reflect.isMoreListLikeThanMapLike(item)) { |
@@ -1,2 +0,2 @@ | ||
/*can-key-tree@0.0.2#can-key-tree*/ | ||
/*can-key-tree@0.0.3#can-key-tree*/ | ||
define([ | ||
@@ -52,2 +52,5 @@ 'require', | ||
function getDeep(item, items, depth, maxDepth) { | ||
if (!item) { | ||
return; | ||
} | ||
if (maxDepth === depth) { | ||
@@ -54,0 +57,0 @@ if (reflect.isMoreListLikeThanMapLike(item)) { |
@@ -1,2 +0,2 @@ | ||
/*can-key-tree@0.0.2#can-key-tree*/ | ||
/*can-key-tree@0.0.3#can-key-tree*/ | ||
var reflect = require('can-reflect'); | ||
@@ -46,2 +46,5 @@ function isBuiltInPrototype(obj) { | ||
function getDeep(item, items, depth, maxDepth) { | ||
if (!item) { | ||
return; | ||
} | ||
if (maxDepth === depth) { | ||
@@ -48,0 +51,0 @@ if (reflect.isMoreListLikeThanMapLike(item)) { |
@@ -130,3 +130,3 @@ /*[global-shim-start]*/ | ||
/*can-key-tree@0.0.2#can-key-tree*/ | ||
/*can-key-tree@0.0.3#can-key-tree*/ | ||
define('can-key-tree', [ | ||
@@ -182,2 +182,5 @@ 'require', | ||
function getDeep(item, items, depth, maxDepth) { | ||
if (!item) { | ||
return; | ||
} | ||
if (maxDepth === depth) { | ||
@@ -184,0 +187,0 @@ if (reflect.isMoreListLikeThanMapLike(item)) { |
{ | ||
"name": "can-key-tree", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "Add and remove items to a tree", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
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
45785
983