Authored by weiqingting

修改滚动加载插件

... ... @@ -69,7 +69,7 @@ infiniteLoad.prototype.init = function() {
function __loadMore() {
if (p.isload && g.__directionCalculation()) {
if (p.isrun && p.isload && g.__directionCalculation()) {
p.isload = false;
p.index++;
g.exect('after', p);
... ... @@ -88,7 +88,12 @@ infiniteLoad.prototype.emit = function() {
p.isload = true;
};
infiniteLoad.prototype.stop = function() {
var p = this.options;
p.isload = false;
p.isrun=false;
};
infiniteLoad.prototype.__directionCalculation = function() {
var p = this.options;
... ...
... ... @@ -40,6 +40,7 @@ var InfiniteLoad = require('../common/infinite-load');
load.emit();
} else {
load.stop();
$load.html('查看更多');
}
},
... ...