title: Backbone.js - Given an element, how do I get the view?
body: <p>I've created a bunch of <a href="http://documentcloud.github.com/backbone/">Backbone.js</a> views. Each view has an associated element (<code>view.el</code>).</p>
  
  <p>Given an element on the page — out of context of the view — what would be the best way to get the view for the element?</p>
  
  <p>For example, say some event affects a bunch of elements on a page and I want to call a method on every view associated with the affected elements.</p>
  
  <p>One way would be to assign the view to the element's data, but I'm wondering if I've missed something smarter:</p>
  
  <pre><code>var myview = BackBone.View.extend({
      initialize: function(options) {
          $(this.el).data('view', this);
          ...
      }
  });
  </code></pre>
  
  <p>(I'm using Backbone with jQuery 1.5.)</p>