Inside Object3D you can see:
rotateX: function () {
var v1 = new THREE.Vector3( 1, 0, 0 );
return function ( angle ) {
return this.rotateOnAxis( v1, angle );
};
}(),
Why not:
rotateX: function (angle) {
var v1 = new THREE.Vector3( 1, 0, 0 );
this.rotateOnAxis( v1, angle );
},
(or something similar, that is, a pure 'direct' function.)
I know this is a pure JavaScript question but I'm curious. Thanks.