Skip to content

Commit

Permalink
solve a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangZhaojin committed Jul 30, 2016
1 parent aba2f2e commit d78a73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions jQuery-scroll/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<div class="scroll-demo">
<!-- 标签切换区 -->
<ul class="scroll-tab">
<li class="tab-item ">第一篇</li>
<li class="tab-item tab-active">第二篇</li>
<li class="tab-item tab-active">第一篇</li>
<li class="tab-item">第二篇</li>
<li class="tab-item">第三篇</li>
<li class="tab-item">第四篇</li>
</ul>
Expand Down
5 changes: 1 addition & 4 deletions jQuery-scroll/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ var Scroll = {};
wheelStep: 15 // 滚动步幅
};
$.extend(true,self.options,options || {});
// 检查参数
if (self.options.contSelector == null || self.options.barSelector == null ||
self.options.tabItemSelector == null || self.anchorSelector == null) { return -1;}
// Dom选择函数
self._initDomEvent();
// 绑定滑块点击拖动事件
Expand Down Expand Up @@ -194,4 +191,4 @@ var scroll_1 = new Scroll.CusScrollBar({
tabItemSelector: ".tab-item", // 标签选择器(必须)
tabActiveClass : "tab-active", // 选中标签样式
anchorSelector : ".anchor" // 苗点选择器(必须)
});
});

0 comments on commit d78a73c

Please sign in to comment.