leonidas / transparency

Transparency is a semantic template engine for the browser. It maps JSON objects to DOM elements by id, class and data-bind attributes.
http://leonidas.github.com/transparency/
MIT License
969 stars 112 forks source link

Removed the node.data("data" ..) call #6

Closed raimohanska closed 12 years ago

raimohanska commented 12 years ago

Taisi olla ihan turha rivi tuo. Vai olikohan sillä jokin elämää suurempi merkitys:)

pyykkis commented 12 years ago

In previous versions, transparency added reference from DOM element to the data object, which enabled, e.g., fancy event handlers as one could get reference to the original data object by calling $(e.target).data('data')

However, adding the data references on each DOM element had a significant performance impact. As the feature is wasn't widely used, nor documented, I decided to throw it away.