documentcloud/backbone — pull request #1850 by gsamokovarov (2012-11-28 22:10:14+00:00)
Title: Don't cache Model#escape

I can not speak for a large Backbone group, but I think that `Model#escape` is rarely used, since I think that most guys will use client-side templates and will leverage the templating system escaping utilities.

I feel that removing the caching reduces the accidental complexity of `Model#set` a bit and simplifies `Model#escape` overall. It may even have some negligible performance increase for `Model#set`, since we are saving a `delete` happening on every attribute value change.

Tell me guys, do you use `Model#escape` at all? The first time I stumbled upon it I actually thought of removing it completely. In the time being I convinced myself that there are some decent programmatic use-cases of it, but still I think that those are pretty rare for us to cache them.