Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-color-picker

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-color-picker - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

26

lib/Alpha.js

@@ -55,2 +55,7 @@ 'use strict';

_createClass(Alpha, [{
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.removeListeners();
}
}, {
key: 'onMouseDown',

@@ -85,10 +90,3 @@ value: function onMouseDown(e) {

});
if (this.dragListener) {
this.dragListener.remove();
this.dragListener = null;
}
if (this.dragUpListener) {
this.dragUpListener.remove();
this.dragUpListener = null;
}
this.removeListeners();
}

@@ -127,2 +125,14 @@ }, {

}, {
key: 'removeListeners',
value: function removeListeners() {
if (this.dragListener) {
this.dragListener.remove();
this.dragListener = null;
}
if (this.dragUpListener) {
this.dragUpListener.remove();
this.dragUpListener = null;
}
}
}, {
key: 'render',

@@ -129,0 +139,0 @@ value: function render() {

@@ -54,2 +54,7 @@ 'use strict';

_createClass(Board, [{
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.removeListeners();
}
}, {
key: 'onBoardMouseDown',

@@ -85,2 +90,12 @@ value: function onBoardMouseDown(e) {

});
this.removeListeners();
}
}, {
key: 'getPrefixCls',
value: function getPrefixCls() {
return this.props.rootPrefixCls + '-board';
}
}, {
key: 'removeListeners',
value: function removeListeners() {
if (this.dragListener) {

@@ -95,7 +110,2 @@ this.dragListener.remove();

}
}, {
key: 'getPrefixCls',
value: function getPrefixCls() {
return this.props.rootPrefixCls + '-board';
}

@@ -102,0 +112,0 @@ /**

@@ -50,2 +50,7 @@ 'use strict';

_createClass(Ribbon, [{
key: 'componentWillUnmount',
value: function componentWillUnmount() {
this.removeListeners();
}
}, {
key: 'onMouseDown',

@@ -80,10 +85,3 @@ value: function onMouseDown(e) {

});
if (this.dragListener) {
this.dragListener.remove();
this.dragListener = null;
}
if (this.dragUpListener) {
this.dragUpListener.remove();
this.dragUpListener = null;
}
this.removeListeners();
}

@@ -112,2 +110,14 @@ }, {

}, {
key: 'removeListeners',
value: function removeListeners() {
if (this.dragListener) {
this.dragListener.remove();
this.dragListener = null;
}
if (this.dragUpListener) {
this.dragUpListener.remove();
this.dragUpListener = null;
}
}
}, {
key: 'render',

@@ -114,0 +124,0 @@ value: function render() {

{
"name": "rc-color-picker",
"version": "1.0.0",
"version": "1.0.1",
"description": "color-picker ui component for react",

@@ -57,2 +57,2 @@ "main": "lib/index.js",

]
}
}
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