Skip to content

Commit

Permalink
Merge pull request #1180 from anthonyryan1/complex-not-bug
Browse files Browse the repository at this point in the history
:not(selector , selector) isn't actually a valid CSS selector
  • Loading branch information
dnschnur committed Nov 10, 2013
2 parents 403b953 + eed38b8 commit 65cba84
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.flot.js
Expand Up @@ -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
Expand Down

0 comments on commit 65cba84

Please sign in to comment.