Browse Source

update getSize v1.2.2

Fixes #827; ref desandro/get-size#10
pull/829/head
David DeSandro 10 years ago
parent
commit
08f59e969c
  1. 4
      dist/isotope.pkgd.js
  2. 2
      dist/isotope.pkgd.min.js

4
dist/isotope.pkgd.js vendored

@ -838,7 +838,7 @@ if ( typeof define === 'function' && define.amd ) {
})( window ); })( window );
/*! /*!
* getSize v1.2.1 * getSize v1.2.2
* measure size of elements * measure size of elements
* MIT license * MIT license
*/ */
@ -1045,7 +1045,7 @@ function getSize( elem ) {
// taken from jQuery's curCSS // taken from jQuery's curCSS
function mungeNonPixel( elem, value ) { function mungeNonPixel( elem, value ) {
// IE8 and has percent value // IE8 and has percent value
if ( getComputedStyle || value.indexOf('%') === -1 ) { if ( window.getComputedStyle || value.indexOf('%') === -1 ) {
return value; return value;
} }
var style = elem.style; var style = elem.style;

2
dist/isotope.pkgd.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save