hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

Fixed removeBehaviour() in Actor.js #153

Closed rehanog closed 10 years ago

rehanog commented 10 years ago

Previously, the loop only checked one value of n. Added decremement, and escape condition. Without these, function was prone to loop forever.

Also renamed function, as British spelling of "behaviour" (with a 'u') not consistent with usage through the rest of the CAAT code-base.

hyperandroid commented 10 years ago

Please, keep the previous function as well, deprecate it, and make it call the new one. Thanks.