Re: Making Smart Menu's work with Prototype javascript library

Home Forums Older releases 0.9.x Making Smart Menu's work with Prototype javascript library Re: Making Smart Menu's work with Prototype javascript library

#1614
admin
Keymaster

Hi,

Actually, you don’t need to edit jquery.smartmenus.min.js at all, you can use the stock version. It doesn’t use $ but jQuery and when you add this:

var $j = jQuery.noConflict();

jQuery will free the $ variable but will keep jQuery so you could still use any plugins (that are properly coded to not rely on $) without any modifications. But yes, for the initialization lines, you would need to replace $ with $j or jQuery like you’ve done.

Cheers!

Register

You will be emailed a link to set your password.

Login

Lost password?