File tree 1 file changed +1
-11
lines changed
demos/q-notify-routing-angularjs
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -223,11 +223,6 @@ <h3>
223
223
224
224
var splitter = / \. / g;
225
225
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
-
231
226
var oldRouteParams = { } ;
232
227
233
228
// I am used as the prefix / name-space for the internal event that will
@@ -405,12 +400,7 @@ <h3>
405
400
// I catch the core route-change event and then translated it into
406
401
// action-oriented events that get broadcast down through the scope tree.
407
402
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
+
414
404
// If there is no action, it's probably a redirect.
415
405
if ( angular . isUndefined ( newRoute . action ) ) {
416
406
You can’t perform that action at this time.
0 commit comments