adding all weblabels from weblabels.fsf.org
[weblabels.fsf.org.git] / www.fsf.org / 20131028 / files / static.fsf.org / plone2012 / jquery-integration.js
CommitLineData
5a920362 1
2/* - jquery-integration.js - */
3/*
4 Provides globals jq and cssQuery; Both are deprecated and are provided
5 only for backwards compatibility.
6
7 DEPRECATION WARNING: The jq alias will be removed in Plone 5.
8 Do not use jq(), but use proper wrapping.
9 See http://docs.jquery.com/Plugins/Authoring#Custom_Alias
10*/
11
12/*global cssQuery:true */
13
14var jq = jQuery;
15
16// If cssQuery is not defined (loaded earlier), redefine it in terms of jQuery
17// For everything but corner cases, this is good enough
18if (typeof cssQuery === 'undefined') {
19 var cssQuery = function (s, f) { return jQuery.makeArray(jQuery(s, f)); };
20}
21