can-fixture
Advanced tools
Comparing version 3.0.0-pre.6 to 3.0.0-pre.7
{ | ||
"name": "can-fixture", | ||
"version": "3.0.0-pre.6", | ||
"version": "3.0.0-pre.7", | ||
"description": "Intercept AJAX requests and simulate responses.", | ||
@@ -5,0 +5,0 @@ "main": "fixture.js", |
@@ -158,2 +158,5 @@ var QueryLogic = require("can-query-logic"); | ||
function looksLikeAQueryLogic(obj){ | ||
return obj && ("identityKeys" in obj); | ||
} | ||
@@ -172,2 +175,4 @@ // ## fixture.store | ||
queryLogic = new QueryLogic({}); | ||
} else if(!looksLikeAQueryLogic(queryLogic)) { | ||
queryLogic = new QueryLogic(queryLogic); | ||
} | ||
@@ -198,2 +203,4 @@ idProp = queryLogic.identityKeys()[0] || "id"; | ||
queryLogic = new QueryLogic({}); | ||
} else if(!looksLikeAQueryLogic(queryLogic)) { | ||
queryLogic = new QueryLogic(queryLogic); | ||
} | ||
@@ -200,0 +207,0 @@ idProp = queryLogic.identityKeys()[0] || "id"; |
57046
1037