Skip to content

Commit

Permalink
fix an parameter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ganlanyuan committed Dec 11, 2015
1 parent 53c693b commit 2405693
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/js/tiny-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

tiny.bp = (tiny.responsive && typeof(tiny.responsive) === 'object') ? Object.keys(tiny.responsive) : false;
tiny.vals = (tiny.responsive && typeof(tiny.responsive) === 'object') ? getMapValues(tiny.responsive, tiny.bp) : false;
tiny.itemsMax = (tiny.vals.length !== undefined) ? Math.max.apply(Math, tiny.vals) : tiny.items;
tiny.itemsMax = (tiny.vals.length !== undefined) ? Math.max.apply(Math, tiny.vals) : options.items;
tiny.items = getItem (tiny.bp, tiny.vals, options.items);
tiny.speed = (tiny.slideByPage) ? options.speed * tiny.items : options.speed;
tiny.animating = false;
Expand Down
2 changes: 1 addition & 1 deletion src/js/tiny-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

tiny.bp = (tiny.responsive && typeof(tiny.responsive) === 'object') ? Object.keys(tiny.responsive) : false;
tiny.vals = (tiny.responsive && typeof(tiny.responsive) === 'object') ? getMapValues(tiny.responsive, tiny.bp) : false;
tiny.itemsMax = (tiny.vals.length !== undefined) ? Math.max.apply(Math, tiny.vals) : tiny.items;
tiny.itemsMax = (tiny.vals.length !== undefined) ? Math.max.apply(Math, tiny.vals) : options.items;
tiny.items = getItem (tiny.bp, tiny.vals, options.items);
tiny.speed = (tiny.slideByPage) ? options.speed * tiny.items : options.speed;
tiny.animating = false;
Expand Down

0 comments on commit 2405693

Please sign in to comment.