Can I void all JavaScript calls to $

Posted by alex on Stack Overflow See other posts from Stack Overflow or by alex
Published on 2010-05-11T02:22:06Z Indexed on 2010/05/11 2:24 UTC
Read the original article Hit count: 319

Filed under:
|

I need some scripts inside an existing site's scripts.js.

This site has been online for ages, and I can not touch the scripts file.

I am including it standardly in another page. There are numerous jQuery calls in the scripts file. The place I include it does not have jQuery.

I want to void all $() type things. I tried this...

$ = function() { };

before I included scripts.js and it didn't seem to work. I am still getting errors like

$(document) is undefined

Is there a way to void all these jQuery calls?

Thanks

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery