mrdoob/three.js — Issue #1199: Getting error from three.js by extending Object
Author: rimina
Created: 2012-01-27 15:54:26+00:00
State: open

Three.js gives and error if code independent from Three.js has extended Object.

Example: Object.prototype.newAttribute = function(){};

That kind of line written to code before rendering with three.js gives and error.
If there are two new properties added to Object then two errors is thrown etc..

Simple example to reproduce the error:

JavaScript code:
http://pastebin.com/nCPP9CxE

Behavior with error causing line:
http://www.students.tut.fi/~mattila3/three/test.html

Behavior without error causing line:
http://www.students.tut.fi/~mattila3/three/test2.html