Socket
Socket
Sign inDemoInstall

react-infinite-tree

Package Overview
Dependencies
31
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

4

dist/react-infinite-tree.js

@@ -1,2 +0,2 @@

/*! react-infinite-tree v0.2.0 | (c) 2016 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-infinite-tree */
/*! react-infinite-tree v0.2.1 | (c) 2016 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-infinite-tree */
exports["InfiniteTree"] =

@@ -140,3 +140,3 @@ /******/ (function(modules) { // webpackBootstrap

var eventName = lcfirst(key.substr(2)); // e.g. onUpdate -> update
_this3.tree.off(eventName, _this3.eventHandlers[key]);
_this3.tree.removeListener(eventName, _this3.eventHandlers[key]);
_this3.eventHandlers[key] = null;

@@ -143,0 +143,0 @@ });

@@ -1,2 +0,2 @@

/*! react-infinite-tree v0.2.0 | (c) 2016 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-infinite-tree */
exports.InfiniteTree=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),f=n(2),p=r(f),d=n(3),h=r(d),v=function(e){return e+="",e.charAt(0).toLowerCase()+e.substr(1)};e.exports=function(e){function t(){var e,n,r,o;i(this,t);for(var a=arguments.length,u=Array(a),s=0;a>s;s++)u[s]=arguments[s];return n=r=l(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.tree=null,r.eventHandlers={onContentWillUpdate:null,onContentDidUpdate:null,onOpenNode:null,onCloseNode:null,onSelectNode:null},o=n,l(r,o)}return a(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=(t.children,t.className,o(t,["children","className"])),r=p["default"].findDOMNode(this);n.el=r,this.tree=new h["default"](n),Object.keys(this.eventHandlers).forEach(function(t){if(e.props[t]){var n=v(t.substr(2));e.eventHandlers[t]=e.props[t],e.tree.on(n,e.eventHandlers[t])}})}},{key:"componentWillUnmount",value:function(){var e=this;Object.keys(this.eventHandlers).forEach(function(t){if(e.eventHandlers[t]){var n=v(t.substr(2));e.tree.off(n,e.eventHandlers[t]),e.eventHandlers[t]=null}}),this.tree.destroy(),this.tree=null}},{key:"render",value:function(){return c["default"].createElement("div",{className:this.props.className},this.props.children)}}]),t}(c["default"].Component)},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-dom")},function(e,t){e.exports=require("infinite-tree")}]);
/*! react-infinite-tree v0.2.1 | (c) 2016 Cheton Wu <cheton@gmail.com> | MIT | https://github.com/cheton/react-infinite-tree */
exports.InfiniteTree=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(1),c=r(s),f=n(2),p=r(f),d=n(3),h=r(d),v=function(e){return e+="",e.charAt(0).toLowerCase()+e.substr(1)};e.exports=function(e){function t(){var e,n,r,o;i(this,t);for(var a=arguments.length,u=Array(a),s=0;a>s;s++)u[s]=arguments[s];return n=r=l(this,(e=Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.tree=null,r.eventHandlers={onContentWillUpdate:null,onContentDidUpdate:null,onOpenNode:null,onCloseNode:null,onSelectNode:null},o=n,l(r,o)}return a(t,e),u(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=(t.children,t.className,o(t,["children","className"])),r=p["default"].findDOMNode(this);n.el=r,this.tree=new h["default"](n),Object.keys(this.eventHandlers).forEach(function(t){if(e.props[t]){var n=v(t.substr(2));e.eventHandlers[t]=e.props[t],e.tree.on(n,e.eventHandlers[t])}})}},{key:"componentWillUnmount",value:function(){var e=this;Object.keys(this.eventHandlers).forEach(function(t){if(e.eventHandlers[t]){var n=v(t.substr(2));e.tree.removeListener(n,e.eventHandlers[t]),e.eventHandlers[t]=null}}),this.tree.destroy(),this.tree=null}},{key:"render",value:function(){return c["default"].createElement("div",{className:this.props.className},this.props.children)}}]),t}(c["default"].Component)},function(e,t){e.exports=require("react")},function(e,t){e.exports=require("react-dom")},function(e,t){e.exports=require("infinite-tree")}]);

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

var eventName = lcfirst(key.substr(2)); // e.g. onUpdate -> update
_this3.tree.off(eventName, _this3.eventHandlers[key]);
_this3.tree.removeListener(eventName, _this3.eventHandlers[key]);
_this3.eventHandlers[key] = null;

@@ -95,0 +95,0 @@ });

{
"name": "react-infinite-tree",
"version": "0.2.0",
"version": "0.2.1",
"description": "The infinite-tree library for React.",

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

@@ -46,3 +46,3 @@ import React from 'react';

const eventName = lcfirst(key.substr(2)); // e.g. onUpdate -> update
this.tree.off(eventName, this.eventHandlers[key]);
this.tree.removeListener(eventName, this.eventHandlers[key]);
this.eventHandlers[key] = null;

@@ -49,0 +49,0 @@ });

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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