In my component I often use the SqueezeBox Mootools method, and
since I've moved to jQuery I now use it like that:
Code: Select all
jQuery.noConflict();
(function($) {
...
$.fn.openIntoIframe = function(link)
{
SqueezeBox.open(link, {handler: 'iframe', size: {x: 800, y: 530}});
return this;
};
...
})(jQuery);
Since SqueezeBox is a Mootools method is there any risk of conflict here (namespace for instance) ?
Is it safe to use it like this or is there another way to do that ?
Thanks for your answers.