react-marquee
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -61,2 +61,10 @@ 'use strict'; | ||
}, | ||
componentWillReceiveProps: function componentWillReceiveProps(nextProps) { | ||
if (this.props.text.length != nextProps.text.length) { | ||
clearTimeout(this._marqueeTimer); | ||
this.setState({ | ||
animatedWidth: 0 | ||
}); | ||
} | ||
}, | ||
handleMouseEnter: function handleMouseEnter() { | ||
@@ -63,0 +71,0 @@ if (this.props.hoverToStop) { |
{ | ||
"name": "react-marquee", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A <marquee> component for React", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -55,2 +55,12 @@ import React, {PropTypes} from 'react'; | ||
componentWillReceiveProps(nextProps) { | ||
if(this.props.text.length != nextProps.text.length) | ||
{ | ||
clearTimeout(this._marqueeTimer); | ||
this.setState({ | ||
animatedWidth: 0 | ||
}); | ||
} | ||
}, | ||
handleMouseEnter() { | ||
@@ -57,0 +67,0 @@ if (this.props.hoverToStop) { |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
10354
6
295
1
63