vizicities
vizicities copied to clipboard
0.2.0 - Build from source: three.js r71 - Webworker broken
I've built vizicities from source, including three.js r71:
- bower install
- grunt build & grunt build_worker
The vizi-worker.js is now throwing an error "Uncaught ReferenceError: window is not defined".
...
}(), dat.color.toString, dat.utils.common), dat.color.interpret, dat.utils.common), dat.utils.requestAnimationFrame = function() {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) {
window.setTimeout(e, 1E3 / 60)
}
}(), dat.dom.CenteredDiv = function(e, a) {
...
Update
Modified the bower.json:
"threejs": "*",
to "threejs": "r69",
- works as advertised again.
Also the r70 of three.js is doing it's job.
It looks like threejs r71 is the problem here.