mitsuhiko/templatetk — comment on commit 08e0f8d4d1614657cc3cf6aa4a23ed125ddb0f55
File: templatetk/res/templatetk.runtime.js line 162
By chrisdickinson:

`for(var obj in iterable) if(iterable.hasOwnProperty(obj))` would be ideal here.

For instance, if I polyfill `Array.prototype.map` in my browser and run a sequence through templatetk's for loop, it'll give me back `[0, 1, 2, 'map']`, which is not desired behavior. (And polyfilling is an increasingly embraced practice in frontend javascript -- just never on `Object.prototype`.)