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.
9 comments:
So where did you added this piece of code at interface.js or at jquery-1.2.1.js ?
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...
Oh it was very good news for me, i am very happy get the your blog, and it will help me in software development
.
In Software Development there have been many advancement.
Post a Comment