troopjs/troopjs-core — pull request #39 by chinason (2012-08-01 01:58:28+00:00)
Title: Update src/component/gadget.js

for (i = bases.length; i >= 0; i--) {
should be
for (i = bases.length - 1; i >= 0; i--) {