Skip to content

Commit 4460c16

Browse files
committed
2 parents eee6d6d + fa980a7 commit 4460c16

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Touch enabled jQuery plugin that lets you create beautiful responsive carousel s
1919
* Custom events
2020
* Helpful callbacks
2121

22-
> Tested on IE7, IE8, IE9, IE10, Chrome, Safari, Firefox, Opera, iPhone, iPad, Chrom on Google Nexus.
22+
> Tested on IE7, IE8, IE9, IE10, Chrome, Safari, Firefox, Opera, iPhone, iPad, Chrome on Google Nexus.
2323
2424

2525
### More Demos

owl-carousel/owl.carousel.js

+12-7
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,10 @@ if (typeof Object.create !== "function") {
6565
logIn : function () {
6666
var base = this;
6767

68-
base.$elem.data("owl-originalStyles", base.$elem.attr("style"));
69-
base.$elem.data("owl-originalClasses", base.$elem.attr("class"));
68+
base.$elem.data({
69+
"owl-originalStyles": base.$elem.attr("style"),
70+
"owl-originalClasses": base.$elem.attr("class")
71+
});
7072

7173
base.$elem.css({opacity: 0});
7274
base.orignalItems = base.options.items;
@@ -1163,7 +1165,9 @@ if (typeof Object.create !== "function") {
11631165
follow = true;
11641166
}
11651167
if (follow && itemNumber < base.currentItem + base.options.items && $lazyImg.length) {
1166-
base.lazyPreload($item, $lazyImg);
1168+
$lazyImg.each(function() {
1169+
base.lazyPreload($item, $(this));
1170+
});
11671171
}
11681172
}
11691173
},
@@ -1371,9 +1375,10 @@ if (typeof Object.create !== "function") {
13711375
}
13721376
}
13731377
base.clearEvents();
1374-
base.$elem
1375-
.attr("style", base.$elem.data("owl-originalStyles") || "")
1376-
.attr("class", base.$elem.data("owl-originalClasses"));
1378+
base.$elem.attr({
1379+
style: base.$elem.data("owl-originalStyles") || "",
1380+
class: base.$elem.data("owl-originalClasses")
1381+
});
13771382
},
13781383

13791384
destroy : function () {
@@ -1509,4 +1514,4 @@ if (typeof Object.create !== "function") {
15091514
startDragging : false,
15101515
afterLazyLoad: false
15111516
};
1512-
}(jQuery, window, document));
1517+
}(jQuery, window, document));

0 commit comments

Comments
 (0)