But when we upgraded to the latest version of JQuery we started to get a very strange error :
jQuery.dequeue is not a function.
After som research it turns out this is due to compability problems with the interface.js library (used for nice visual effects) and the new JQuery version. You can read about it at this thread. However the thing is that JQuery has changed it's syntax for the dequeue function from :
jQuery.dequeue(elem, effect);to:jQuery(elem).dequeue(effect);So before they fix this I just added a simple patch and now everything works fine : /* Backwards compability to make JQuery to work with interface */
(function($){
$.extend({ dequeue : function(elem, effect) {
$(elem).dequeue(effect);
}
});
})(jQuery);Note: doing the (xxx)(JQuery) prevents us from getting a JQuery not defined error.
8 comments:
So where did you added this piece of code at interface.js or at jquery-1.2.1.js ?
Thanks for this.
Thank you very much. Extremely helpful.
@chris: In none. I just added it in a file loaded after these two to achieve the 'monkey patching'.
Thanks javascript for letting me do this kind of stuff.
Hey Jens, thanks for that, I stuck your code snippit in a separate jscript file, referenced it from my page, and now Interface works correctly once more.
so finally i can solve this problem thank you very much.
because of this error i was stuck with older version of jquery, for one of my plugin.
Brilliant! Thanks a million! This problem was really bothering me...
You said you will love me wow gold the whole life, but WoW Gold you marry her. You said you will wow power leveling,come to marry me, but this will not be carried out forever.WoW Gold I am trying my best to forget you and do not love you anymore. wow leveling But I failed and I still love you. Maybe wow leveling she needs you more compared wow leveling with me. So I tell you that world of warcraft power leveling you should love world of warcraft power leveling her and take good world of warcraft leveling care of her. You said I was so kind.world of warcraft leveling Yes, because I love you,world of warcraft leveling I hope you will be power leveling happy forever.
Post a Comment