can-route
Advanced tools
Comparing version 4.0.0-pre.3 to 4.0.0-pre.4
@@ -45,4 +45,2 @@ /*jshint -W079 */ | ||
var timer; | ||
// Are data changes pending that haven't yet updated the hash | ||
var changingData; | ||
// A dummy events object used to dispatch url change events on. | ||
@@ -60,4 +58,2 @@ var matchedObservable = new Observation(function canRoute_matchedRoute(){ | ||
function updateUrl(serializedData) { | ||
// indicate that data is changing | ||
changingData = 1; | ||
// collect attributes that are changing | ||
@@ -68,3 +64,2 @@ clearTimeout(timer); | ||
// indicate that the hash is set to look like the data | ||
changingData = 0; | ||
var serialized =canRoute.data.serialize(), | ||
@@ -97,10 +92,10 @@ route = routeParam.getMatchedRoute(serialized), | ||
// the hash is what we set it to anyway, do NOT change the hash | ||
if ( !changingData ) { | ||
queues.batch.start(); | ||
var state = canRoute.deparam(hash); | ||
delete state.route; | ||
canReflect.update(canRoute.data,state); | ||
queues.batch.stop(); | ||
} | ||
queues.batch.start(); | ||
var state = canRoute.deparam(hash); | ||
delete state.route; | ||
canReflect.update(canRoute.data,state); | ||
queues.batch.stop(); | ||
} | ||
@@ -249,3 +244,2 @@ //!steal-remove-start | ||
clearTimeout(timer); | ||
changingData = 0; | ||
}, | ||
@@ -252,0 +246,0 @@ /** |
{ | ||
"name": "can-route", | ||
"version": "4.0.0-pre.3", | ||
"version": "4.0.0-pre.4", | ||
"description": "Observable front-end application routing for CanJS.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://canjs.com/doc/can-route.html", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
56348
1003