Skip to content

Commit a5144dc

Browse files
hansonrhansonr
authored andcommitted
SwingJS-site.zip update
1 parent f0ac8ef commit a5144dc

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed
47 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200731055950
1+
20200731074830
47 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200731055950
1+
20200731074830
47 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/srcjs/swingjs2.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -867,9 +867,10 @@ function Sizzle( selector, context, results, seed ) {
867867
if ( newSelector ) {
868868
try {
869869
// SwingJS addition
870-
var mode = (newSelector.indexOf(":") >= 0 ? ":"
871-
: newSelector.indexOf(".not(") >= 0 ? ".not"
872-
: newSelector.indexOf("!=") >= 0 ? "!=" : 0);
870+
var mode = (newSelector.indexOf(":has(") >= 0 ? "has"
871+
: newSelector.indexOf("!=") >= 0 ? "!=" : 0
872+
: newSelector.indexOf(":") >= 0 ? ":"
873+
);
873874
if (mode && j2sInvalidSelectors.indexOf(mode) < 0) {
874875
push.apply( results,
875876
newContext.querySelectorAll( newSelector )

0 commit comments

Comments
 (0)