My Mix file. The second file, functions.js is used by all the other files. I have put common function in there. So, myAutocomplete() is inside functions.js. But it is called on click event. I am having particular trouble at this moment with quotations.js which has the click event which calls myAutocomplete
mix.js(['resources/js/app.js', 'resources/js/functions.js','resources/js/categories.js', 'resources/js/create_workorder.js','resources/js/hashtable.js','resources/js/invoice_additions.js','resources/js/jquery.tablesorter.min.js','resources/js/orders.js','resources/js/products.js','resources/js/project_quotes.js','resources/js/quotations.js','resources/js/tabs.js','resources/js/validation.js','resources/js/warehouse.js'], 'public/js')
.css('resources/css/app.css','public/css')
.sourceMaps();