title: Javascript Events vs. Callbacks In MVC Scenario
body: <p>I'm trying to work out a nice way to have views and controllers and minimize the ties between them.</p>
  
  <p>Aside from multiple subscribers to one event, is there any major difference between js code like this:</p>
  
  <pre><code>var customers = {
      get: function(callback) {
          $.get('/customers', {}, function(data) { 
              callback.call(this, data); 
          });
      }
  };
  </code></pre>
  
  <p>And an event-driven approach like this (event object is just pseudo code):</p>
  
  <pre><code>var customers = {
      get: function() {
          $j.get('/customers', {}, function(data) { 
              event.publish('customers.loaded', data); 
          });
      }
  };
  </code></pre>
  
  <p>In both cases, the consumer of the customers object is ignorant of its inner workings. Does one way have an advantage over the other?</p>