From a5c20a9d115db204511eb009f34419cea3d1b58c Mon Sep 17 00:00:00 2001 From: jljsj Date: Wed, 20 Jan 2016 19:33:24 +0800 Subject: [PATCH] update scrollAnim version --- package.json | 2 +- scripts/home.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) 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 (