Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
cheton committed Jun 2, 2016
2 parents 7b03a7e + 9f644c0 commit 32d4801
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/infinite-tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -2039,6 +2039,7 @@ return /******/ (function(modules) { // webpackBootstrap
// @param {boolean} [options.openAllNodes] True to open all nodes. Defaults to false.
// @param {array} [options.openNodes] An array that contains the ids of open nodes
// @return {array}
/* eslint no-console: 0 */
var flatten = function flatten() {
var nodes = arguments.length <= 0 || arguments[0] === undefined ? [] : arguments[0];
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
Expand All @@ -2063,7 +2064,6 @@ return /******/ (function(modules) { // webpackBootstrap
parentNode = new _node2['default'](parentNode);
}
var rootNode = parentNode || new _node2['default']({ // defaults
label: '',
parent: null,
children: nodes,
state: {
Expand Down Expand Up @@ -2098,7 +2098,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (options.throwOnError) {
throw new Error('The node might have been corrupted: id=' + JSON.stringify(p.id) + ', state=' + JSON.stringify(p.state));
} else {
console && console.log('Error: The node might have been corrupted: id=%s, label=%s, parent=%s, children=%s, state=%s', JSON.stringify(p.id), JSON.stringify(p.label), p.parent, p.children, JSON.stringify(p.state));
console && console.log('Error: The node might have been corrupted: id=%s, parent=%s, children=%s, state=%s', JSON.stringify(p.id), p.parent, p.children, JSON.stringify(p.state));
}
}

Expand Down Expand Up @@ -2228,6 +2228,7 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';

exports.__esModule = true;
/* 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];
Expand Down Expand Up @@ -2274,7 +2275,6 @@ return /******/ (function(modules) { // webpackBootstrap
_classCallCheck(this, Node);

this.id = null;
this.label = '';
this.parent = null;
this.children = [];
this.state = {};
Expand Down
Loading

0 comments on commit 32d4801

Please sign in to comment.