Skip to content

Commit

Permalink
v1.12.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Sep 16, 2017
1 parent 10e8749 commit 0df90a5
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 27 deletions.
61 changes: 49 additions & 12 deletions dist/infinite-tree.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! infinite-tree v1.12.4 | (c) 2017 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */
/*! infinite-tree v1.12.5 | (c) 2017 Cheton Wu <[email protected]> | MIT | https://github.com/cheton/infinite-tree */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -443,15 +443,19 @@ var _ensureArray = __webpack_require__(12);

var _ensureArray2 = _interopRequireDefault(_ensureArray);

var _utilities = __webpack_require__(13);
var _extend = __webpack_require__(13);

var _lookupTable = __webpack_require__(14);
var _extend2 = _interopRequireDefault(_extend);

var _utilities = __webpack_require__(14);

var _lookupTable = __webpack_require__(15);

var _lookupTable2 = _interopRequireDefault(_lookupTable);

var _renderer = __webpack_require__(15);
var _renderer = __webpack_require__(16);

var _domEvents = __webpack_require__(17);
var _domEvents = __webpack_require__(18);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

Expand Down Expand Up @@ -500,7 +504,7 @@ var ensureNodeInstance = function ensureNodeInstance(node) {
};

var createRootNode = function createRootNode(rootNode) {
return Object.assign(rootNode || new _flattree.Node(), {
return (0, _extend2['default'])(rootNode || new _flattree.Node(), {
parent: null,
children: [],
state: {
Expand Down Expand Up @@ -2161,7 +2165,7 @@ var InfiniteTree = function (_events$EventEmitter) {
delete data.parent;
delete data.state;

node = Object.assign(node, data);
node = (0, _extend2['default'])(node, data);

// Retrieve node index
var nodeIndex = this.nodes.indexOf(node);
Expand Down Expand Up @@ -3177,6 +3181,39 @@ exports["default"] = ensureArray;
"use strict";


/* eslint no-restricted-syntax: 0 */
var extend = function extend(target) {
for (var _len = arguments.length, sources = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
sources[_key - 1] = arguments[_key];
}

if (target === undefined || target === null) {
throw new TypeError('Cannot convert undefined or null to object');
}

var output = Object(target);
for (var index = 0; index < sources.length; index++) {
var source = sources[index];
if (source !== undefined && source !== null) {
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
output[key] = source[key];
}
}
}
}
return output;
};

module.exports = extend;

/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";


exports.__esModule = true;

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
Expand Down Expand Up @@ -3232,7 +3269,7 @@ var get = exports.get = function () {
}();

/***/ }),
/* 14 */
/* 15 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down Expand Up @@ -3278,7 +3315,7 @@ var LookupTable = function () {
exports["default"] = LookupTable;

/***/ }),
/* 15 */
/* 16 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand All @@ -3295,7 +3332,7 @@ var _escapeHtml = __webpack_require__(3);

var _escapeHtml2 = _interopRequireDefault(_escapeHtml);

var _html5Tag = __webpack_require__(16);
var _html5Tag = __webpack_require__(17);

var _html5Tag2 = _interopRequireDefault(_html5Tag);

Expand Down Expand Up @@ -3372,7 +3409,7 @@ var defaultRowRenderer = function defaultRowRenderer(node, treeOptions) {
exports.defaultRowRenderer = defaultRowRenderer;

/***/ }),
/* 16 */
/* 17 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down Expand Up @@ -3428,7 +3465,7 @@ module.exports = function (tag, attrs, text) {
};

/***/ }),
/* 17 */
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

"use strict";
Expand Down
4 changes: 2 additions & 2 deletions dist/infinite-tree.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/examples.js

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "infinite-tree",
"version": "1.12.4",
"version": "1.12.5",
"description": "A browser-ready tree library that can efficiently display a large amount of data using infinite scrolling.",
"homepage": "https://github.com/cheton/infinite-tree",
"main": "lib/index.js",
Expand Down Expand Up @@ -43,24 +43,24 @@
"is-dom": "^1.0.9"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-loader": "^7.1.1",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-es3-member-expression-literals": "^6.22.0",
"babel-plugin-transform-es3-property-literals": "^6.22.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-es2015-loose": "^8.0.0",
"babel-preset-stage-0": "^6.24.1",
"babel-runtime": "^6.25.0",
"babel-runtime": "^6.26.0",
"coveralls": "^2.13.1",
"css-loader": "^0.28.4",
"eslint": "^4.5.0",
"css-loader": "^0.28.7",
"eslint": "^4.7.0",
"eslint-config-trendmicro": "^1.0.0",
"eslint-import-resolver-webpack": "^0.8.3",
"eslint-loader": "^1.9.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^5.1.1",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.3.0",
"file-loader": "^0.11.2",
"jsdom": "^9.12.0",
Expand All @@ -71,10 +71,10 @@
"stylint": "^1.5.9",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"tap": "^10.7.1",
"tap": "^10.7.2",
"url-loader": "^0.5.9",
"webpack": "^3.5.4",
"webpack-dev-server": "^2.7.1"
"webpack": "^3.6.0",
"webpack-dev-server": "^2.8.2"
},
"nyc": {
"exclude": []
Expand Down

0 comments on commit 0df90a5

Please sign in to comment.