Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.0 - Build from source: three.js r71 - Webworker broken #153

Open
sysrun opened this issue Apr 19, 2015 · 0 comments
Open

0.2.0 - Build from source: three.js r71 - Webworker broken #153

sysrun opened this issue Apr 19, 2015 · 0 comments

Comments

@sysrun
Copy link

sysrun commented Apr 19, 2015

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant