title: jQuery .serializeObject is not a function - only in Firefox
body: <p>I'm using jQuery, and specifically this function</p>
  
  <p><code>$("#postStatus").serializeObject();</code></p>
  
  <p>It works absolutely fine in Chrome and Safari, but when I do it in Firefox it doesn't work. I used Firebug to see what error it was giving, and i'm getting this</p>
  
  <p><code>$("#postStatus").serializeObject is not a function</code> </p>
  
  <p>Why doesn't this function work in Firefox?</p>
  
  <p>UPDATE...</p>
  
  <p>Oh yes, I completely forgot that it's not a core function. I remember that I searched a way to serialize a form and found this solution;</p>
  
  <pre><code>$.fn.serializeObject = function()
  {
     var o = {};
     var a = this.serializeArray();
     $.each(a, function() {
         if (o[this.name]) {
             if (!o[this.name].push) {
                 o[this.name] = [o[this.name]];
             }
             o[this.name].push(this.value || '');
         } else {
             o[this.name] = this.value || '';
         }
     });
     return o;
  };
  </code></pre>
  
  <p>I've managed to fix this issue by placing the function above at the top of the JS file. Thanks for your help guys.</p>