balderdashy/sails — pull request #534 by sgress454 (2013-07-08 04:49:39+00:00)
Title: Fixed bug when unbinding routes in Sails router

Fixed bug when unbinding routes in Sails router; using array.splice doesn't work when looping over an array, since the indexes change as items are removed.

Added "router:unbind" event handler in Sails express module to remove unbound routes from internal Express router.