Socket
Socket
Sign inDemoInstall

react-big-calendar

Package Overview
Dependencies
52
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.1 to 0.5.2

7

CHANGELOG.md

@@ -0,1 +1,8 @@

v0.5.2 - Sun, 13 Sep 2015 12:56:02 GMT
--------------------------------------
- [386d4bc](../../commit/386d4bc) [fixed] `selectable` can properly be toggled on and off
v0.5.1 - Sun, 13 Sep 2015 10:08:24 GMT

@@ -2,0 +9,0 @@ --------------------------------------

13

lib/BackgroundCells.js

@@ -47,5 +47,10 @@ 'use strict';

DisplayCells.prototype.componentWillUnmount = function componentWillUnmount() {
this._selector && this._selector.teardown();
this._teardownSelectable();
};
DisplayCells.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
if (nextProps.selectable && !this.props.selectable) this._selectable();
if (!nextProps.selectable && this.props.selectable) this._teardownSelectable();
};
DisplayCells.prototype.render = function render() {

@@ -130,2 +135,8 @@ var slots = this.props.slots;

DisplayCells.prototype._teardownSelectable = function _teardownSelectable() {
if (!this._selector) return;
this._selector.teardown();
this._selector = null;
};
DisplayCells.prototype._selectSlot = function _selectSlot(_ref) {

@@ -132,0 +143,0 @@ var endIdx = _ref.endIdx;

@@ -94,5 +94,10 @@ 'use strict';

componentWillUnmount: function componentWillUnmount() {
this._selector && this._selector.teardown();
this._teardownSelectable();
},
componentWillReceiveProps: function componentWillReceiveProps(nextProps) {
if (nextProps.selectable && !this.props.selectable) this._selectable();
if (!nextProps.selectable && this.props.selectable) this._teardownSelectable();
},
render: function render() {

@@ -277,2 +282,8 @@ var _props = this.props;

_teardownSelectable: function _teardownSelectable() {
if (!this._selector) return;
this._selector.teardown();
this._selector = null;
},
_selectSlot: function _selectSlot(_ref3) {

@@ -279,0 +290,0 @@ var startDate = _ref3.startDate;

2

lib/Month.js

@@ -267,3 +267,3 @@ 'use strict';

return _react2['default'].createElement(_BackgroundCells2['default'], {
selectable: true,
selectable: this.props.selectable,
slots: 7,

@@ -270,0 +270,0 @@ ref: function (r) {

{
"name": "react-big-calendar",
"version": "0.5.1",
"version": "0.5.2",
"description": "Calendar! with events",

@@ -57,2 +57,3 @@ "author": "Jason Quense <monastic.panic@gmail.com>",

"es5-shim": "^4.1.7",
"es6-promise": "^3.0.2",
"eslint": "^0.24.0",

@@ -59,0 +60,0 @@ "eslint-plugin-babel": "^1.0.0",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc