jonobr1 / Physics

A requirified port of Traer Physics from Processing to JavaScript.
http://jonobr1.github.com/Physics
Other
195 stars 21 forks source link

breaker is undefined #4

Closed ClemensSchneider closed 10 years ago

ClemensSchneider commented 10 years ago

Hi, you missed the variable 'breaker' while copying parts of underscore.js. This causes physics to fail in browsers that do not support the native forEach function.

if (i in obj && iterator.call(context, obj[i], i, obj) === breaker) return;

jonobr1 commented 10 years ago

Thanks for pointing that out! I just added breaker definition: https://github.com/jonobr1/Physics/commit/3695c51cbd3df95e23a647c8976e3fd29bba502a