1
1
/*!
2
- * jQuery JavaScript Library v1.12.0
2
+ * jQuery JavaScript Library v1.12.1
3
3
* http://jquery.com/
4
4
*
5
5
* Includes Sizzle.js
9
9
* Released under the MIT license
10
10
* http://jquery.org/license
11
11
*
12
- * Date: 2016-01-08T19:56Z
12
+ * Date: 2016-02-22T19:07Z
13
13
*/
14
14
15
15
( function ( global , factory ) {
@@ -65,7 +65,7 @@ var support = {};
65
65
66
66
67
67
var
68
- version = "1.12.0 " ,
68
+ version = "1.12.1 " ,
69
69
70
70
// Define a local copy of jQuery
71
71
jQuery = function ( selector , context ) {
@@ -3625,11 +3625,10 @@ jQuery.ready.promise = function( obj ) {
3625
3625
3626
3626
// Catch cases where $(document).ready() is called
3627
3627
// after the browser event has already occurred.
3628
- // we once tried to use readyState "interactive" here,
3629
- // but it caused issues like the one
3630
- // discovered by ChrisS here:
3631
- // http://bugs.jquery.com/ticket/12282#comment:15
3632
- if ( document . readyState === "complete" ) {
3628
+ // Support: IE6-10
3629
+ // Older IE sometimes signals "interactive" too soon
3630
+ if ( document . readyState === "complete" ||
3631
+ ( document . readyState !== "loading" && ! document . documentElement . doScroll ) ) {
3633
3632
3634
3633
// Handle it asynchronously to allow scripts the opportunity to delay ready
3635
3634
window . setTimeout ( jQuery . ready ) ;
@@ -6701,7 +6700,7 @@ if ( window.getComputedStyle ) {
6701
6700
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
6702
6701
var view = elem . ownerDocument . defaultView ;
6703
6702
6704
- if ( ! view . opener ) {
6703
+ if ( ! view || ! view . opener ) {
6705
6704
view = window ;
6706
6705
}
6707
6706
@@ -6717,11 +6716,14 @@ if ( window.getComputedStyle ) {
6717
6716
// getPropertyValue is only needed for .css('filter') in IE9, see #12537
6718
6717
ret = computed ? computed . getPropertyValue ( name ) || computed [ name ] : undefined ;
6719
6718
6720
- if ( computed ) {
6719
+ // Support: Opera 12.1x only
6720
+ // Fall back to style even without computed
6721
+ // computed is undefined for elems on document fragments
6722
+ if ( ( ret === "" || ret === undefined ) && ! jQuery . contains ( elem . ownerDocument , elem ) ) {
6723
+ ret = jQuery . style ( elem , name ) ;
6724
+ }
6721
6725
6722
- if ( ret === "" && ! jQuery . contains ( elem . ownerDocument , elem ) ) {
6723
- ret = jQuery . style ( elem , name ) ;
6724
- }
6726
+ if ( computed ) {
6725
6727
6726
6728
// A tribute to the "awesome hack by Dean Edwards"
6727
6729
// Chrome < 17 and Safari 5.0 uses "computed value"
@@ -10818,11 +10820,8 @@ jQuery.fn.extend( {
10818
10820
}
10819
10821
10820
10822
// Add offsetParent borders
10821
- // Subtract offsetParent scroll positions
10822
- parentOffset . top += jQuery . css ( offsetParent [ 0 ] , "borderTopWidth" , true ) -
10823
- offsetParent . scrollTop ( ) ;
10824
- parentOffset . left += jQuery . css ( offsetParent [ 0 ] , "borderLeftWidth" , true ) -
10825
- offsetParent . scrollLeft ( ) ;
10823
+ parentOffset . top += jQuery . css ( offsetParent [ 0 ] , "borderTopWidth" , true ) ;
10824
+ parentOffset . left += jQuery . css ( offsetParent [ 0 ] , "borderLeftWidth" , true ) ;
10826
10825
}
10827
10826
10828
10827
// Subtract parent offsets and element margins
0 commit comments