The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Is this a method? Reply To: Is this a method?


A couple general tips for improving code re-use:

  1. 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)
  2. Investigate function composition
  3. Learn about javascript mixins

Good luck in your endeavors!