|
|
@ -838,13 +838,13 @@ if ( typeof define === 'function' && define.amd ) { |
|
|
|
})( window ); |
|
|
|
})( window ); |
|
|
|
|
|
|
|
|
|
|
|
/*! |
|
|
|
/*! |
|
|
|
* getSize v1.2.0 |
|
|
|
* getSize v1.2.1 |
|
|
|
* measure size of elements |
|
|
|
* measure size of elements |
|
|
|
* MIT license |
|
|
|
* MIT license |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
/*jshint browser: true, strict: true, undef: true, unused: true */ |
|
|
|
/*jshint browser: true, strict: true, undef: true, unused: true */ |
|
|
|
/*global define: false, exports: false, require: false, module: false */ |
|
|
|
/*global define: false, exports: false, require: false, module: false, console: false */ |
|
|
|
|
|
|
|
|
|
|
|
( function( window, undefined ) { |
|
|
|
( function( window, undefined ) { |
|
|
|
|
|
|
|
|
|
|
@ -860,6 +860,8 @@ function getStyleSize( value ) { |
|
|
|
return isValid && num; |
|
|
|
return isValid && num; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function noop() {} |
|
|
|
|
|
|
|
|
|
|
|
var logError = typeof console === 'undefined' ? noop : |
|
|
|
var logError = typeof console === 'undefined' ? noop : |
|
|
|
function( message ) { |
|
|
|
function( message ) { |
|
|
|
console.error( message ); |
|
|
|
console.error( message ); |
|
|
@ -935,10 +937,10 @@ function setup() { |
|
|
|
if ( !style ) { |
|
|
|
if ( !style ) { |
|
|
|
logError( 'Style returned ' + style + |
|
|
|
logError( 'Style returned ' + style + |
|
|
|
'. Are you running this code in a hidden iframe on Firefox? ' + |
|
|
|
'. Are you running this code in a hidden iframe on Firefox? ' + |
|
|
|
'See http://bit.ly/getsizeiframe' ); |
|
|
|
'See http://bit.ly/getsizebug1' ); |
|
|
|
} |
|
|
|
} |
|
|
|
return style; |
|
|
|
return style; |
|
|
|
} |
|
|
|
}; |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
// -------------------------- box sizing -------------------------- //
|
|
|
|
// -------------------------- box sizing -------------------------- //
|
|
|
|