Permalink
Browse files

Build: update Sizzle to 2.2.1

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 17, 2015
1 parent b5c6fc7 commit 20cd34384d6908e0280cea9b69e09f065c4e4003
Showing with 12 additions and 12 deletions.
  1. +8 −8 external/sizzle/dist/sizzle.js
  2. +2 −2 external/sizzle/dist/sizzle.min.js
  3. +1 −1 external/sizzle/dist/sizzle.min.map
  4. +1 −1 package.json
@@ -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 ) {
@@ -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
@@ -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( "," );
@@ -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;
@@ -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 );
Oops, something went wrong.

0 comments on commit 20cd343

Please sign in to comment.