Jacques Le Roux wrote:
> As you know the jQuery branch has been merged to the trunk.
> 
> I suggested to use jQuery.noConflict(); and to keep using jQuery(
> instead of the $( shortcut
> 
> In the trunk I finally think we should continue to use "jQuery( instead
> of the $( shortcut" to allow custom project to use other libs but we
> don't need "jQuery.noConflict();" because OOTB there are no other js
> libs so no risks of conflicts

if (jQuery) (function($) {
  $.globalMethod();
  $(selector).instanceMethod();
})(jQuery);

> 
> Jacques
> 
> From: "Sascha Rodekamp" <[email protected]>
>> +1
>> if we writing code for our (widget) framework and make our own jQuery
>> plugins (for ofbiz) :-) it's best practice to use jQuery( ... instead
>> of $(
>> ...
>>
>> Cheers
>> Sascha
>>
>> 2010/10/13 Jacques Le Roux <[email protected]>
>>
>>> Hi,
>>>
>>> We are not yet completly ready (almost all is done, we need more
>>> testing),
>>> but I think that when we will merge the jQuery branch
>>> we should use
>>>
>>> jQuery.noConflict();
>>>
>>> and keep using jQuery( instead of the $( shortcut. Until we all agree
>>> about
>>> not doing so.
>>>
>>> Because some of us are certainly using Dojo or/and Prototype in their
>>> custom projects based on trunk and it would be a nightmare otherwise.
>>>
>>> Jacques
>>>
>>>
>>>
>>
>>
>> -- 
>> Sascha Rodekamp
>>    Lynx-Consulting GmbH
>>    Johanniskirchplatz 6
>>    D-33615 Bielefeld
>>    http://www.lynx.de
>>
> 
> 

Reply via email to