Skip to content

Commit

Permalink
insertSlideAfter Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Apr 13, 2013
1 parent 1ac3b0c commit ca3b88e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dev/idangerous.swiper.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
}

/* Specify Swiper's Size: */
.swiper-container, .swiper-slide {
/*.swiper-container, .swiper-slide {
width: 500px;
height: 200px;
}
}*/


4 changes: 2 additions & 2 deletions dev/idangerous.swiper.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ var Swiper = function (selector, params, callback) {
}
_this.insertSlideAfter = function (index, html, slideClassList, el) {
if (!index) return false;
if (index.nodeType) {
return _this._extendSwiperSlide(index).insertAfter(index)
if (html.nodeType) {
return _this._extendSwiperSlide(html).insertAfter(index)
}
else {
return _this.createSlide(html, slideClassList, el).insertAfter(index)
Expand Down

0 comments on commit ca3b88e

Please sign in to comment.