A more elegant solution suggested by zlorf.

This commit is contained in:
wrwrwr 2014-10-04 19:16:18 +02:00
parent b06e49921b
commit 6026a91741

View file

@ -3,8 +3,7 @@
var google, django, gettext;
(function () {
var t = jQuery || $ || django.jQuery;
jQuery = t; // Note: This is not equivalent to "var jQuery = jQuery || ...".
var jQuery = window.jQuery || $ || django.jQuery;
/* Add a new selector to jQuery that excludes parent items which match a given selector */
jQuery.expr[':'].parents = function(a, i, m) {