Home › Forums › JavaScript › Is this a method? › Reply To: Is this a method?
August 20, 2014 at 2:17 pm
#180039
Participant
A couple general tips for improving code re-use:
- De-couple as much code as possible from the DOM (since this type of code generally is tightly coupled to the structure of the document)
- Investigate function composition
- Learn about javascript mixins
Good luck in your endeavors!