Example:
<template repeat="{{dir in [1, 2, 3]}}">{{dir}}</template> => 333
I scratched my head on this one for a very long time before I realized that dir() is some kind of special value, at least in Chrome.
Apologies for the imprecision, I don't know the status of "dir" in Javascript, i.e. is it just in Chrome, is it a builtin? Nevertheless, it exhibits this really unfortunate behavior.
Is is possible to detect such uses, or to make them work as intended?
http://jsbin.com/polojite/1/edit
Example:
<template repeat="{{dir in [1, 2, 3]}}">{{dir}}</template> => 333
I scratched my head on this one for a very long time before I realized that dir() is some kind of special value, at least in Chrome.
Apologies for the imprecision, I don't know the status of "dir" in Javascript, i.e. is it just in Chrome, is it a builtin? Nevertheless, it exhibits this really unfortunate behavior.
Is is possible to detect such uses, or to make them work as intended?
http://jsbin.com/polojite/1/edit