can-reflect
Advanced tools
Comparing version 1.14.3 to 1.14.4
{ | ||
"name": "can-reflect", | ||
"version": "1.14.3", | ||
"version": "1.14.4", | ||
"description": "reflection on unknown data types", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
@@ -25,3 +25,3 @@ var QUnit = require('steal-qunit'); | ||
}); | ||
var instance = new MyType("_id"); | ||
@@ -76,1 +76,7 @@ schema = schemaReflections.getSchema(instance); | ||
}); | ||
QUnit.test("getSchema returns undefined when there is not schema", function(){ | ||
QUnit.equal(schemaReflections.getSchema(function(){}), undefined, "is undefined"); | ||
}); |
@@ -105,3 +105,3 @@ var canSymbol = require("can-symbol"); | ||
} | ||
return getSchema.call(type); | ||
return getSchema !== undefined ? getSchema.call(type) : undefined; | ||
}, | ||
@@ -108,0 +108,0 @@ /** |
165676
4515