File tree 3 files changed +16
-7
lines changed
3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change
1
+ # 4.6.4
2
+
3
+ * IE8 fix
4
+ * Setting breakpoint on document no longer finds children images
5
+
1
6
# 4.6.3
2
7
3
8
* Fixed broken qunit testing
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " breakpoint" ,
3
- "version" : " 4.6.3 " ,
3
+ "version" : " 4.6.4 " ,
4
4
"description" : " Breakpoint is a column based media query generator and responsive image framework." ,
5
5
"author" : " Les James" ,
6
6
"homepage" : " https://github.com/lesjames/breakpoint" ,
Original file line number Diff line number Diff line change 1
1
/*!
2
- * jQuery Breakpoint plugin v4.6.2
2
+ * jQuery Breakpoint plugin v4.6.4
3
3
* http://github.com/lesjames/breakpoint
4
4
*
5
5
* MIT License
47
47
} else {
48
48
49
49
// older browsers need some help
50
- window . getComputedStyle = function ( el ) {
50
+ var getComputedFallback = function ( el ) {
51
51
this . el = el ;
52
52
this . getPropertyValue = function ( prop ) {
53
53
var re = / ( \- ( [ a - z ] ) { 1 } ) / g;
62
62
} ;
63
63
64
64
// fallback label is added as a font-family to the head, thanks Jeremy Keith
65
- style = window . getComputedStyle ( document . getElementsByTagName ( 'head' ) [ 0 ] , '' ) ;
66
- style = removeQuotes ( style . getPropertyValue ( 'font-family' ) ) ;
65
+ style = getComputedFallback ( document . getElementsByTagName ( 'head' ) [ 0 ] ) ;
66
+ style = style . getPropertyValue ( 'font-family' ) ;
67
67
68
68
}
69
69
218
218
219
219
$ . fn . breakpoint = function ( options , callback ) {
220
220
221
- // reduce selection to only images
222
- var $images = this . find ( 'img' ) . add ( this . filter ( 'img' ) ) ;
221
+ var $images = [ ] ;
222
+
223
+ if ( this [ 0 ] !== document ) {
224
+ // reduce selection to only images
225
+ $images = this . find ( 'img' ) . add ( this . filter ( 'img' ) ) ;
226
+ }
223
227
224
228
// create an instance and pass it selected images
225
229
var breakpointImages = new BreakpointImages ( $images ) ;
You can’t perform that action at this time.
0 commit comments