title: jQuery plugin: Uncaught TypeError: Cannot call method 'replace' of undefined
body: <p>I am using a jquery plugin called "spriteOnHover". I read all answered questions about this error and followed all steps explained. But I am still getting same error "Uncaught TypeError: Cannot call method 'replace' of undefined"</p>
  
  <p>Plugin link: <a href="http://apolinariopassos.com.br/dev/sprite-on-hover-jquery-plugin/" rel="nofollow">here</a> </p>
  
  <p>Line of error is:</p>
  
  <pre><code>var path = $(this).css('background-image').replace('url', '').replace('(', '').replace(')', '').replace('"', '').replace('"', '');
  </code></pre>
  
  <p>Thank you!</p>