title: Uncaught TypeError: Cannot set property 'mobile' of undefined
body: <p>I am developing an app with angular js and phonegap.</p>
  
  <p>I am using jquery mobile in a directive, it is for adding some animation to a notification bar. I t works well with jquery 1.8.1 but when I use jquery mobile </p>
  
  <pre><code>&lt;script src="scripts/vendor/jquery/jquery.mobile-1.3.1.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>Uncaught TypeError: Cannot set property 'mobile' of undefined jquery.mobile-1.3.1.js:26
  
  (anonymous function) jquery.mobile-1.3.1.js:26
  (anonymous function) jquery.mobile-1.3.1.js:27
  (anonymous function) jquery.mobile-1.3.1.js:22
  (anonymous function) jquery.mobile-1.3.1.js:24
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/CFq4W.png" alt="enter image description here"></p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks in advance!</p>