Skip to content

Commit

Permalink
Fixed #1, Problem with webkit and continuous=0
Browse files Browse the repository at this point in the history
  • Loading branch information
quelbs committed Mar 4, 2013
1 parent 7e12b57 commit a21ee40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.cyclotron.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
// check size of image if not continuous image
if(settings.continuous===0) {
var image_url = container.css('background-image');
var image_url = container.css('background-image').replace(/^url\(["']?/, '').replace(/["']?\)$/, '');;
image_url = image_url.substr(5, image_url.length - 7);

This comment has been minimized.

Copy link
@quelbs

quelbs Mar 4, 2013

Author Owner

Forgot to remove this line. The new replace calls do what was previously done by this substr call, but they also work for webkit based browsers. Fixed version is in next commit.

var image = new Image();
$(image).load(function () {
Expand Down

0 comments on commit a21ee40

Please sign in to comment.