Skip to content

Commit 6b95d5b

Browse files
committed
Removed :last selector that was causing problems on Opera. It wasn't entirely necessary.
1 parent fcb8ee8 commit 6b95d5b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jquery.backstretch.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* jQuery Backstretch
3-
* Version 1.2.2
3+
* Version 1.2.3
44
* http://srobbin.com/jquery-plugins/jquery-backstretch/
55
*
66
* Add a dynamically-resized background image to the page
@@ -100,8 +100,8 @@
100100
if(settings.centeredX) $.extend(bgCSS, {left: "-" + bgOffset + "px"});
101101
}
102102

103-
$("#backstretch, #backstretch img:last").width( bgWidth ).height( bgHeight )
104-
.filter("img").css(bgCSS);
103+
$("#backstretch, #backstretch img").width( bgWidth ).height( bgHeight )
104+
.filter("img").css(bgCSS);
105105
} catch(err) {
106106
// IE7 seems to trigger _adjustBG before the image is loaded.
107107
// This try/catch block is a hack to let it fail gracefully.

jquery.backstretch.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)