Skip to content

Commit

Permalink
Build: update Sizzle to 2.2.1
Browse files Browse the repository at this point in the history
Ref #2644 - `selector` module in Edge - Waiting for Sizzle update
Fixes #2390

(cherry picked from commit 44f8239)

Conflicts:
	package.json
  • Loading branch information
markelog authored and gibson042 committed Oct 25, 2015
1 parent b5c6fc7 commit 20cd343
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions external/sizzle/dist/sizzle.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* Sizzle CSS Selector Engine v2.2.0
* Sizzle CSS Selector Engine v2.2.1
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-10
* Date: 2015-10-17
*/
(function( window ) {

Expand Down Expand Up @@ -191,7 +191,7 @@ try {
}

function Sizzle( selector, context, results, seed ) {
var m, i, elem, nid, match, groups, newSelector,
var m, i, elem, nid, nidselect, match, groups, newSelector,
newContext = context && context.ownerDocument,

// nodeType defaults to 9, since context defaults to document
Expand Down Expand Up @@ -292,8 +292,9 @@ function Sizzle( selector, context, results, seed ) {
// Prefix every selector in the list
groups = tokenize( selector );
i = groups.length;
nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
while ( i-- ) {
groups[i] = "[id='" + nid + "'] " + toSelector( groups[i] );
groups[i] = nidselect + " " + toSelector( groups[i] );
}
newSelector = groups.join( "," );

Expand Down Expand Up @@ -380,7 +381,7 @@ function assert( fn ) {
*/
function addHandle( attrs, handler ) {
var arr = attrs.split("|"),
i = attrs.length;
i = arr.length;

while ( i-- ) {
Expr.attrHandle[ arr[i] ] = handler;
Expand Down Expand Up @@ -503,10 +504,9 @@ setDocument = Sizzle.setDocument = function( node ) {
docElem = document.documentElement;
documentIsHTML = !isXML( document );

// Support: IE 9 - 11
// Support: IE 9-11, Edge
// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
// Limit the fix to IE with document.documentMode and IE >=9 with document.defaultView
if ( document.documentMode && (parent = document.defaultView) && parent.top !== parent ) {
if ( (parent = document.defaultView) && parent.top !== parent ) {
// Support: IE 11
if ( parent.addEventListener ) {
parent.addEventListener( "unload", unloadHandler, false );
Expand Down
Loading

0 comments on commit 20cd343

Please sign in to comment.