From eed38b8d4fe37521b3751bd6234d50226d8477f7 Mon Sep 17 00:00:00 2001 From: Anthony Ryan Date: Sun, 3 Nov 2013 23:15:13 -0500 Subject: [PATCH] :not(selector , selector) isn't actually a valid CSS selector jQuery's Sizzle is the only thing that this actually works in so jQuery will fail when it passes this directly to querySelectorAll() --- jquery.flot.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquery.flot.js b/jquery.flot.js index e26e325..c2176aa 100644 --- a/jquery.flot.js +++ b/jquery.flot.js @@ -1252,7 +1252,9 @@ Licensed under the MIT license. // from a previous plot in this container that we'll try to re-use. placeholder.css("padding", 0) // padding messes up the positioning - .children(":not(.flot-base,.flot-overlay)").remove(); + .children().filter(function(){ + return !$(this).hasClass("flot-overlay") && !$(this).hasClass('flot-base'); + }).remove(); if (placeholder.css("position") == 'static') placeholder.css("position", "relative"); // for positioning labels and overlay