Skip to content


Subversion checkout URL

You can clone with
Download ZIP
branch: 1.3.x
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (20 sloc) 1.537 kB

MooTools 1.3.x vs 2.y.x

A repo. used to demonstrate the differences between 1.3.x, 2.y.x, and 2.y.x with the use of Host.install.

Branches 1.3.x and 2.y.x are what'd you expect them to be. Always checkout and push to the right branch depending on the code. Try not to optimize the code. We're interested in easy comparisons.

Branch 2.y.x-installed is code that uses the Host.install method. This is used for native augmentation. In other words: Array.install() will allow 1.3.x style: [].forEach.



These examples have been selected or contributed by others. You can send your own code so that you can see the exact difference between the 1.3.x and 2.y.x code.

  1. Fork the repo.
  2. Clone your new repo: git clone
  3. Add your 1.3.x file. `git add .; git commit -am "Added MY_FILE.js."
  4. Push your changes. git push origin 1.3.x
  5. Send a pull request.


  1. Checkout 2.y.x branch and try to port your code. `git checkout origin/2.y.x; commit -am "Ported to 2.y.x"
  2. Push your changes. git push origin 2.y.x
  3. Send a pull request.

Same instructions for 2.y.x-installed.

Jump to Line
Something went wrong with that request. Please try again.