10000 v4.5.1 - fix for FF false positive image loaded event by lesjames · Pull Request #54 · lesjames/breakpoint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v4.5.1 - fix for FF false positive image loaded event #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "breakpoint",
"version": "4.5.0",
"version": "4.5.1",
"description": "Breakpoint is a column based media query generator and responsive image framework.",
"author": "Les James",
"homepage": "https://github.com/lesjames/breakpoint",
Expand Down
8 changes: 7 additions & 1 deletion jquery.breakpoint.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* jQuery Breakpoint plugin v4.5.0
* jQuery Breakpoint plugin v4.5.1
* http://github.com/lesjames/breakpoint
*
* MIT License
Expand Down Expand Up @@ -93,7 +93,13 @@
var src = findSource($image, set);

if (src) {

// remove previous source before setting
// imagesLoaded in FF was using the previous image's
// naturalHeight for a false positive load event
$image.removeAttr('src');
$image.attr('src', src);

}

return $image;
Expand Down
0