diff --git a/package.json b/package.json index 1c4e1fa9ea..c87ec061dd 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "lodash": "^3.10.0", "nico-jsx": "~0.7.0", "pre-commit": "1.x", - "rc-scroll-anim": "^0.1.5", + "rc-scroll-anim": "^0.1.6", "rc-tween-one": "^0.1.8", "react": "0.14.x", "react-addons-test-utils": "0.14.x", diff --git a/scripts/home.js b/scripts/home.js index 8dd605c635..39a9d2c6b0 100644 --- a/scripts/home.js +++ b/scripts/home.js @@ -31,7 +31,7 @@ module.exports = function () { $(window).off('scroll.scrollNavEvent'); $(window).on('scroll.scrollNavEvent', scrollNavEvent); // 整屏滚动; - scrollScreen({docHeight: 4746}); + scrollScreen.init({docHeight: 4746}); // list point ReactDOM.render((
@@ -59,10 +59,6 @@ module.exports = function () { return 'left'; } - componentWillUnmount() { - console.log(122112) - } - render() { return (