jeremyckahn / shifty

The fastest TypeScript animation engine on the web
https://jeremyckahn.github.io/shifty/doc/
MIT License
1.54k stars 88 forks source link

Updated .each to use Object's hasOwnProperty #31

Closed rkofman closed 11 years ago

rkofman commented 11 years ago

If somebody decides to use 'hasOwnProperty' as a dictionary key, we're in trouble. So instead, we use the standard Object's version of the method to avoid the danger.

jeremyckahn commented 11 years ago

Yay, thanks for the fix!