Clippy Lints page - Fix path watch triggering
This commit is contained in:
parent
f2e6a99a08
commit
2e4ef8e72c
@ -270,7 +270,7 @@
|
|||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
// Watch for changes in the URL path and update the search and lint display
|
// Watch for changes in the URL path and update the search and lint display
|
||||||
$scope.$watch($location.path, function (newPath) {
|
$scope.$watch(function () { return $location.path(); }, function (newPath) {
|
||||||
const searchParameter = newPath.substring(1);
|
const searchParameter = newPath.substring(1);
|
||||||
if ($scope.search !== searchParameter) {
|
if ($scope.search !== searchParameter) {
|
||||||
$scope.search = searchParameter;
|
$scope.search = searchParameter;
|
||||||
@ -292,12 +292,12 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$watch($location.search, function (newParameters) {
|
$scope.$watch(function () { return $location.search(); }, function (newParameters) {
|
||||||
if (!internalURLChange) {
|
if (!internalURLChange) {
|
||||||
loadFromURLParameters();
|
loadFromURLParameters();
|
||||||
}
|
}
|
||||||
internalURLChange = false;
|
internalURLChange = false;
|
||||||
});
|
}, true);
|
||||||
|
|
||||||
$scope.updatePath = function () {
|
$scope.updatePath = function () {
|
||||||
if (debounceTimeout) {
|
if (debounceTimeout) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user