Skip to content

Commit 192e8e9

Browse files
committed
v0.4.0
1 parent 3992228 commit 192e8e9

File tree

2 files changed

+18
-23
lines changed

2 files changed

+18
-23
lines changed

dist/react-infinite-tree.js

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ exports["InfiniteTree"] =
852852
* @param {object} obj
853853
* @return {object}
854854
*/
855-
var keyMirror = function (obj) {
855+
var keyMirror = function keyMirror(obj) {
856856
var ret = {};
857857
var key;
858858
!(obj instanceof Object && !Array.isArray(obj)) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'keyMirror(...): Argument must be an object.') : invariant(false) : void 0;
@@ -1997,7 +1997,7 @@ exports["InfiniteTree"] =
19971997
var warning = emptyFunction;
19981998

19991999
if (process.env.NODE_ENV !== 'production') {
2000-
warning = function (condition, format) {
2000+
warning = function warning(condition, format) {
20012001
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
20022002
args[_key - 2] = arguments[_key];
20032003
}
@@ -2045,6 +2045,7 @@ exports["InfiniteTree"] =
20452045
* LICENSE file in the root directory of this source tree. An additional grant
20462046
* of patent rights can be found in the PATENTS file in the same directory.
20472047
*
2048+
*
20482049
*/
20492050

20502051
function makeEmptyFunction(arg) {
@@ -2058,7 +2059,7 @@ exports["InfiniteTree"] =
20582059
* primarily useful idiomatically for overridable function endpoints which
20592060
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
20602061
*/
2061-
function emptyFunction() {}
2062+
var emptyFunction = function emptyFunction() {};
20622063

20632064
emptyFunction.thatReturns = makeEmptyFunction;
20642065
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
@@ -2941,7 +2942,7 @@ exports["InfiniteTree"] =
29412942
* 'xa12' in that case. Resolve keys you want to use once at startup time, then
29422943
* reuse those resolutions.
29432944
*/
2944-
var keyOf = function (oneKeyObj) {
2945+
var keyOf = function keyOf(oneKeyObj) {
29452946
var key;
29462947
for (key in oneKeyObj) {
29472948
if (!oneKeyObj.hasOwnProperty(key)) {
@@ -4424,11 +4425,11 @@ exports["InfiniteTree"] =
44244425
* because of Facebook's testing infrastructure.
44254426
*/
44264427
if (performance.now) {
4427-
performanceNow = function () {
4428+
performanceNow = function performanceNow() {
44284429
return performance.now();
44294430
};
44304431
} else {
4431-
performanceNow = function () {
4432+
performanceNow = function performanceNow() {
44324433
return Date.now();
44334434
};
44344435
}
@@ -8804,16 +8805,14 @@ exports["InfiniteTree"] =
88048805
* LICENSE file in the root directory of this source tree. An additional grant
88058806
* of patent rights can be found in the PATENTS file in the same directory.
88068807
*
8808+
*
88078809
* @typechecks static-only
88088810
*/
88098811

88108812
'use strict';
88118813

88128814
/**
88138815
* Memoizes the return value of a function that accepts one string argument.
8814-
*
8815-
* @param {function} callback
8816-
* @return {function}
88178816
*/
88188817

88198818
function memoizeStringOnly(callback) {
@@ -15378,18 +15377,18 @@ exports["InfiniteTree"] =
1537815377
* @param {function} callback Callback function.
1537915378
* @return {object} Object with a `remove` method.
1538015379
*/
15381-
listen: function (target, eventType, callback) {
15380+
listen: function listen(target, eventType, callback) {
1538215381
if (target.addEventListener) {
1538315382
target.addEventListener(eventType, callback, false);
1538415383
return {
15385-
remove: function () {
15384+
remove: function remove() {
1538615385
target.removeEventListener(eventType, callback, false);
1538715386
}
1538815387
};
1538915388
} else if (target.attachEvent) {
1539015389
target.attachEvent('on' + eventType, callback);
1539115390
return {
15392-
remove: function () {
15391+
remove: function remove() {
1539315392
target.detachEvent('on' + eventType, callback);
1539415393
}
1539515394
};
@@ -15404,11 +15403,11 @@ exports["InfiniteTree"] =
1540415403
* @param {function} callback Callback function.
1540515404
* @return {object} Object with a `remove` method.
1540615405
*/
15407-
capture: function (target, eventType, callback) {
15406+
capture: function capture(target, eventType, callback) {
1540815407
if (target.addEventListener) {
1540915408
target.addEventListener(eventType, callback, true);
1541015409
return {
15411-
remove: function () {
15410+
remove: function remove() {
1541215411
target.removeEventListener(eventType, callback, true);
1541315412
}
1541415413
};
@@ -15422,7 +15421,7 @@ exports["InfiniteTree"] =
1542215421
}
1542315422
},
1542415423

15425-
registerDefault: function () {}
15424+
registerDefault: function registerDefault() {}
1542615425
};
1542715426

1542815427
module.exports = EventListener;
@@ -17076,7 +17075,7 @@ exports["InfiniteTree"] =
1707617075
* LICENSE file in the root directory of this source tree. An additional grant
1707717076
* of patent rights can be found in the PATENTS file in the same directory.
1707817077
*
17079-
* @typechecks
17078+
*
1708017079
*/
1708117080

1708217081
var isTextNode = __webpack_require__(139);
@@ -17085,10 +17084,6 @@ exports["InfiniteTree"] =
1708517084

1708617085
/**
1708717086
* Checks if a given DOM node contains or is another DOM node.
17088-
*
17089-
* @param {?DOMNode} outerNode Outer DOM node.
17090-
* @param {?DOMNode} innerNode Inner DOM node.
17091-
* @return {boolean} True if `outerNode` contains or is `innerNode`.
1709217087
*/
1709317088
function containsNode(outerNode, innerNode) {
1709417089
if (!outerNode || !innerNode) {
@@ -17099,7 +17094,7 @@ exports["InfiniteTree"] =
1709917094
return false;
1710017095
} else if (isTextNode(innerNode)) {
1710117096
return containsNode(outerNode, innerNode.parentNode);
17102-
} else if (outerNode.contains) {
17097+
} else if ('contains' in outerNode) {
1710317098
return outerNode.contains(innerNode);
1710417099
} else if (outerNode.compareDocumentPosition) {
1710517100
return !!(outerNode.compareDocumentPosition(innerNode) & 16);

0 commit comments

Comments
 (0)