Skip to content

Commit

Permalink
Merge pull request #65 from lesjames/develop
Browse files Browse the repository at this point in the history
v4.6.4
  • Loading branch information
lesjames committed Aug 23, 2013
2 parents e298115 + 0000f8e commit 913af3c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,8 @@
# 4.6.4

* IE8 fix
* Setting breakpoint on document no longer finds children images

# 4.6.3

* Fixed broken qunit testing
Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,6 +1,6 @@
{
"name": "breakpoint",
"version": "4.6.3",
"version": "4.6.4",
"description": "Breakpoint is a column based media query generator and responsive image framework.",
"author": "Les James",
"homepage": "https://github.com/lesjames/breakpoint",
Expand Down
16 changes: 10 additions & 6 deletions jquery.breakpoint.js
@@ -1,5 +1,5 @@
/*!
* jQuery Breakpoint plugin v4.6.2
* jQuery Breakpoint plugin v4.6.4
* http://github.com/lesjames/breakpoint
*
* MIT License
Expand Down Expand Up @@ -47,7 +47,7 @@
} else {

// older browsers need some help
window.getComputedStyle = function(el) {
var getComputedFallback = function(el) {
this.el = el;
this.getPropertyValue = function(prop) {
var re = /(\-([a-z]){1})/g;
Expand All @@ -62,8 +62,8 @@
};

// fallback label is added as a font-family to the head, thanks Jeremy Keith
style = window.getComputedStyle(document.getElementsByTagName('head')[0], '');
style = removeQuotes(style.getPropertyValue('font-family'));
style = getComputedFallback(document.getElementsByTagName('head')[0]);
style = style.getPropertyValue('font-family');

}

Expand Down Expand Up @@ -218,8 +218,12 @@

$.fn.breakpoint = function (options, callback) {

// reduce selection to only images
var $images = this.find('img').add( this.filter('img') );
var $images = [];

if (this[0] !== document) {
// reduce selection to only images
$images = this.find('img').add( this.filter('img') );
}

// create an instance and pass it selected images
var breakpointImages = new BreakpointImages( $images );
Expand Down

0 comments on commit 913af3c

Please sign in to comment.