Skip to content

Commit 19d67b9

Browse files
committed
Cleaning up old code.
1 parent ec59a09 commit 19d67b9

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

demos/q-notify-routing-angularjs/index.htm

+1-11
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,6 @@ <h3>
223223

224224
var splitter = /\./g;
225225

226-
// Every time the route changes, the state is incremented. We can use
227-
// this unique value to know if a state has changed between two different
228-
// moments in time.
229-
var routeState = 0;
230-
231226
var oldRouteParams = {};
232227

233228
// I am used as the prefix / name-space for the internal event that will
@@ -405,12 +400,7 @@ <h3>
405400
// I catch the core route-change event and then translated it into
406401
// action-oriented events that get broadcast down through the scope tree.
407402
function handleRounteChangeEvent( event, newRoute ) {
408-
409-
// Increment the route state - every moment in time will be unique;
410-
// like a beautiful snowflake. This will allow us to bypass state
411-
// actions when they are no longer relevant.
412-
routeState++;
413-
403+
414404
// If there is no action, it's probably a redirect.
415405
if ( angular.isUndefined( newRoute.action ) ) {
416406

0 commit comments

Comments
 (0)