Hi Hannes, :)
Running a single version removes 90% of the interest of a joomla-core
library-sharing solution:
As detailed in the discussion on the pull request here:
https://github.com/joomla/joomla-platform/pull/736 :
jQuery is highly backwards compatible usually, and I would have agreed
with your suggestion if there wouldn't have been jQuery 1.6 release
which broke backwards compatibility for the very much used .attr()
method:
http://blog.jquery.com/2011/05/03/jquery-16-released/
As well as plans for jQuery 1.9 and 2.0, which will probably again
break something.
Of course, new main release 1.x introduce new features not available
before, and that some extensions need.
The issue here is timing of major releases of jQuery and of
extensions, which gives an additional headache to site admins if not
handled.
Changing jQuery version is easy and smooth most of the time, but not
with what happened in jQuery 1.6 (and thus might happen again).
One of the big issues in moving a large extension with many third-
party plugins relying on a given jquery version for the .attr() method
is that if you use a single version and do update to a major
incompatible version (to be able to have the same for all), you break
your API between your own major releases and generate a headache for
third parties and for site admins in the end.
For detailed explanations, please read my comments on the pull
request:
https://github.com/joomla/joomla-platform/pull/736 .
On Jan 12, 11:45 am, Hannes Papenberg <
hackwa...@googlemail.com>
wrote:
> I actually don't know if we even need to cater for different jquery
> versions. As far as I can see, an additional jquery version simply
> (partially) overwrites the currently loaded one, which means that we always
> just have the latest one and that's it. So we might as well simply use the
> latest jquery and be done with it.
>
> Hannes
> Am 12.01.2012 00:08 schrieb "Beat" <
beat...@gmail.com>:
>
>
>
>
>
>
>
> > Spent last 2 days designing, implementing and testing a
> > behavior.jquery like was discussed here:
>
> >
https://groups.google.com/forum/#!msg/joomla-dev-cms/HfgjK07fYN8/E-0a...