Skip to content

Commit 3116795

Browse files
ameshkovgibson042
authored andcommitted
Selector: Fix nonnativeSelectorCache
Closes gh-418
1 parent 0c91abc commit 3116795

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sizzle.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ function Sizzle( selector, context, results, seed ) {
331331
);
332332
return results;
333333
} catch ( qsaError ) {
334-
nonnativeSelectorCache( selector );
334+
nonnativeSelectorCache( selector, true );
335335
} finally {
336336
if ( nid === expando ) {
337337
context.removeAttribute( "id" );
@@ -997,7 +997,7 @@ Sizzle.matchesSelector = function( elem, expr ) {
997997
return ret;
998998
}
999999
} catch (e) {
1000-
nonnativeSelectorCache( expr );
1000+
nonnativeSelectorCache( expr, true );
10011001
}
10021002
}
10031003

0 commit comments

Comments
 (0)