mrdoob/three.js — pull request #2457 by LarryBattle (2012-09-27 16:56:15+00:00)
Title: Update src/Three.js

Simplified the logic for setting "startsWith", "endsWith", and "trim".
Also fixed bug with setting trim.

if ( ! String.prototype.trim === undefined ) {

The code above wouldn't set trim if it was undefined.