title: javascript error in jquery: string.replace( rmsPrefix, "ms-" ) javascript error
body: <p>I am seeing this error locally. it happens when i append some certain DOM:</p>
  
  <pre><code>TypeError: string is undefined  
  
  return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
  
  jquery.js (line 622)
  </code></pre>
  
  <p>It doesnt appear on production, but it happens to me locally from time to time. Ive debugged it but couldnt find anything. Im using jquery 1.8.2. </p>
  
  <p>Posting about it here in hopes some one else has come across this. (i dont expect a solution)</p>
  
  <p>here is the code that causes it:</p>
  
  <pre><code>flash = function(type, message, secondaryMessage) {
      var flash_location = $('.flash-location');
      var secondary = '';
      type = type || 'error';
      message = message || (type == 'success' ? 'Success' : 'Error');
      if(secondaryMessage){
          secondary = '&lt;p class="secondary"&gt;'+secondaryMessage+'&lt;/p&gt;';
      }
      var top = 5;
      flash_location.append($('&lt;div class="flash"&gt;&lt;div class="flash-content ' + type + '" style="top:'+top+'px;"&gt;&lt;table&gt;&lt;tr&gt;&lt;td class="flash-icon"&gt;&lt;/td&gt;&lt;td&gt;&lt;p class="primary"&gt;' + message + '&lt;/p&gt;'+secondary+'&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;/div&gt;&lt;/div&gt;').fadeIn('normal'));
  };
  </code></pre>