I know there exists a command like jQuery.noConflict. But for this it first registers $, then un-registers it afaik.
I want to edit the jQuery 1.3.2 code to stop it from registering the $ in the first place. I know its not the best of ideas, but I need this in a particular project. Am just not sure how it can be done? I mean what part of jquery.js should I edit/remove? Also, how can I rename jQuery to say jQ from the start itself?
Thank you for your time. Would like any pointers.
I think I need to delete the following from the jQuery code (for 1.4.2):
// Expose jQuery to the global object
window.jQuery = window.$ = jQuery;
noConflictreplaces$with the original object, so it doesn’t matter that it registers it first.If you still want to use
$for jQuery at the same time (so you don’t have to write out the longjQuery), you can do this: