mozilla-b2g/gaia — pull request #6178 by ochameau (2012-11-05 22:39:00+00:00)
Title: Bug 796739: [Communications] Remove eval() usages

We should avoid any usage of `eval()`, like the one made in `templates.js` in order to enable all safe security checks implemented in https://bugzilla.mozilla.org/show_bug.cgi?id=768029

I'm suggesting here to go to the easy way. Both usages of `eval()` are for features that aren't used. So we can address this issue by simply removing following features:

* 'condition' feature of templates,
* template placeholders with dots, like #foo.bar#. I haven't seen any usage of it.

I would agree that these two features are cool, but what is the point of maintaining them if we don't use them?

https://bugzilla.mozilla.org/show_bug.cgi?id=796739