title: Javascript method styles : What is the difference between these two method styles?
body: <p>What is the difference between these two method styles in Javascript? Is it just an optical difference or are there more subtle differences?</p>
  
  <pre><code>Ticket.createDetailView = function(elem) {..}
  
  Ticket = {
     createDetailView: function(elem) {..}
  }
  </code></pre>