mrdoob/three.js — pull request #1901 by niklassa (2012-05-12 13:55:36+00:00)
Title: Add range to Ray.intersectObject()

Added this.range parameter. Range check could be done manually afterwards. But when interested in whether a projectile (=ray) has hit a moving mesh or not, a lot of time is wasted on checking the mesh faces should the mesh still be out of range. If no range is specified, behaviour remains the same.