can-route-pushstate
Advanced tools
Comparing version 5.0.4 to 5.0.5
@@ -550,23 +550,17 @@ /*jshint scripturl:true*/ | ||
makeTestingIframe(function (info, done) { | ||
var timer; | ||
info.route.serializedCompute.bind("change", function () { | ||
clearTimeout(timer); | ||
timer = setTimeout(function () { | ||
// deepEqual doesn't like to compare objects from different contexts | ||
// so we copy it | ||
var obj = extend({}, info.route.attr()); | ||
// deepEqual doesn't like to compare objects from different contexts | ||
// so we copy it | ||
var obj = extend({}, info.route.attr()); | ||
deepEqual(obj, { | ||
section: "something", | ||
sub: "test", | ||
}, "route's data is correct"); | ||
deepEqual(obj, { | ||
section: "something", | ||
sub: "test", | ||
}, "route's data is correct"); | ||
equal(info.route.matched(), "{section}/{sub}/", | ||
"route's matched property is correct"); | ||
equal(info.route.matched(), "{section}/{sub}/", | ||
"route's matched property is correct"); | ||
done(); | ||
start(); | ||
}, 10); | ||
done(); | ||
start(); | ||
}); | ||
@@ -576,4 +570,6 @@ | ||
var link = createLink(info.window, "/app/something/test/"); | ||
domEvents.dispatch(link, "click"); | ||
domEvents.dispatch(link, "click"); | ||
}); | ||
@@ -580,0 +576,0 @@ }; |
{ | ||
"name": "can-route-pushstate", | ||
"version": "5.0.4", | ||
"version": "5.0.5", | ||
"description": "Pushstate for can-route", | ||
@@ -41,3 +41,3 @@ "homepage": "https://canjs.com/doc/can-route-pushstate.html", | ||
"can-reflect": "^1.8.0", | ||
"can-route": "^4.2.0-pre.1", | ||
"can-route": "^4.3.12", | ||
"can-simple-observable": "^2.0.0", | ||
@@ -48,3 +48,3 @@ "can-diff": "<2.0.0" | ||
"can-assign": "<2.0.0", | ||
"can-define": "^2.0.0", | ||
"can-define": "^2.6.0", | ||
"can-map": "^4.0.0", | ||
@@ -51,0 +51,0 @@ "detect-cyclic-packages": "^1.1.0", |
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
53455
1254
Updatedcan-route@^4.3.12