Router:navigation:complete in one file directing to another file

I am using the router instructions to do certain things in various .js files, but am running into something strange, and I can’t find documentation on it.

When I have router:navigation:complete set in customer.js for example, and then in search.js too, and I navigate to search.html, in the debug console, i see that it will bounce me back to customer.js’s router:navigation:complete to fill out instructions from that router navigation’s event.

Am I missing something?

Should I use a different event in each file?

Thanks.

I figured it out.

I removed the document.ready() function from the customer.js, and it stopped going to customer.js from search and started just loading search instead.