This may be a naive question, but I want to ask anyways to see if there is a best practice recommendation. I have a controller (can.Control) in my CanJS application that is quite bloated with over 2000 lines of code. Is there a way to break certain logically related methods out into a separate js file and import it or something? I am using AMD modules.
Yeah, it could have been done that way. Right now, there is only one controller that renders and controls that element rich page. So, I am trying to see if I can put some related methods out to seperate js files and AMD-import it.