Socket
Socket
Sign inDemoInstall

react-smooth

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-smooth - npm Package Compare versions

Comparing version 0.1.13 to 0.1.14

5

CHANGELOG.md

@@ -0,1 +1,6 @@

0.1.14 / 2016-10-28
==================
* fix: judge isMounted
0.1.13 / 2016-10-27

@@ -2,0 +7,0 @@ ==================

12

es6/Animate.js

@@ -109,2 +109,4 @@ 'use strict';

this.isMounted = true;
if (!isActive || !canBegin) {

@@ -167,2 +169,4 @@ return;

value: function componentWillUnmount() {
this.isMounted = false;
if (this.unSubscribe) {

@@ -296,5 +300,7 @@ this.unSubscribe();

value: function changeStyle(style) {
this.setState({
style: style
});
if (this.isMounted) {
this.setState({
style: style
});
}
}

@@ -301,0 +307,0 @@ }, {

@@ -109,2 +109,4 @@ 'use strict';

this.isMounted = true;
if (!isActive || !canBegin) {

@@ -167,2 +169,4 @@ return;

value: function componentWillUnmount() {
this.isMounted = false;
if (this.unSubscribe) {

@@ -296,5 +300,7 @@ this.unSubscribe();

value: function changeStyle(style) {
this.setState({
style: style
});
if (this.isMounted) {
this.setState({
style: style
});
}
}

@@ -301,0 +307,0 @@ }, {

{
"name": "react-smooth",
"version": "0.1.13",
"version": "0.1.14",
"description": "react animation library",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -96,2 +96,4 @@ import React, { Component, PropTypes, cloneElement, Children } from 'react';

this.isMounted = true;
if (!isActive || !canBegin) {

@@ -149,2 +151,4 @@ return;

componentWillUnmount() {
this.isMounted = false;
if (this.unSubscribe) {

@@ -271,5 +275,7 @@ this.unSubscribe();

changeStyle(style) {
this.setState({
style,
});
if (this.isMounted) {
this.setState({
style,
});
}
}

@@ -276,0 +282,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc