@better-scroll/pull-up
Advanced tools
Comparing version 2.0.5 to 2.0.6
@@ -11,2 +11,3 @@ /*! | ||
var isAndroid = ua && ua.indexOf('android') > 0; | ||
/* istanbul ignore next */ | ||
var isIOSBadVersion = (function () { | ||
@@ -37,2 +38,3 @@ if (typeof ua === 'string') { | ||
var vendor = (function () { | ||
/* istanbul ignore if */ | ||
if (!inBrowser) { | ||
@@ -69,4 +71,6 @@ return false; | ||
} | ||
/* istanbul ignore next */ | ||
return false; | ||
})(); | ||
/* istanbul ignore next */ | ||
function prefixStyle(style) { | ||
@@ -73,0 +77,0 @@ if (vendor === false) { |
@@ -17,2 +17,3 @@ /*! | ||
var isAndroid = ua && ua.indexOf('android') > 0; | ||
/* istanbul ignore next */ | ||
var isIOSBadVersion = (function () { | ||
@@ -43,2 +44,3 @@ if (typeof ua === 'string') { | ||
var vendor = (function () { | ||
/* istanbul ignore if */ | ||
if (!inBrowser) { | ||
@@ -75,4 +77,6 @@ return false; | ||
} | ||
/* istanbul ignore next */ | ||
return false; | ||
})(); | ||
/* istanbul ignore next */ | ||
function prefixStyle(style) { | ||
@@ -79,0 +83,0 @@ if (vendor === false) { |
{ | ||
"name": "@better-scroll/pull-up", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "pull up to load more data", | ||
@@ -30,5 +30,5 @@ "author": "huangyi <ustbhuangyi@gmail.com>", | ||
"dependencies": { | ||
"@better-scroll/core": "^2.0.5" | ||
"@better-scroll/core": "^2.0.6" | ||
}, | ||
"gitHead": "8fb2cd55daa85f0df2ff8137fe699cb3bb820373" | ||
"gitHead": "00b314eada44d4c430eda138ccf27d3b91d39421" | ||
} |
@@ -231,3 +231,14 @@ import BScroll from '@better-scroll/core' | ||
expect(scroll.scrollTo).toBeCalledWith(0, outOfBoundaryPos, 800) | ||
expect(scroll.scrollTo).toBeCalledTimes(1) | ||
// closePullUp, and autoPullUpLoad will not work | ||
pullUp.closePullUp() | ||
pullUp.autoPullUpLoad() | ||
expect(scroll.scrollTo).toBeCalledTimes(1) | ||
}) | ||
it('should call finishPullUp when content DOM changed', () => { | ||
scroll.hooks.trigger(scroll.hooks.eventTypes.contentChanged) | ||
expect(scroll.scroller.scrollBehaviorY.setMovingDirection).toBeCalled() | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34188
902
Updated@better-scroll/core@^2.0.6