jrburke/requirejs — pull request #1096 by clmath (2014-04-23 17:10:05+00:00)
Title: Unnecessary iterations in trimDot

Due to the array being changed during the loop, storing the length at the beginning is leading to unnecessary iteration if a ".." or a "." is found in the name. This may also be harmful in the future as this is probably not wanted.