()
| 993 | }; |
| 994 | |
| 995 | var defer = function defer() { |
| 996 | this.promise = new Promise(function (resolve, reject) { |
| 997 | this.resolve = resolve; |
| 998 | this.reject = reject; |
| 999 | }.bind(this)); |
| 1000 | |
| 1001 | this.then = this.promise.then.bind(this.promise); |
| 1002 | this.catch = this.promise.catch.bind(this.promise); |
| 1003 | }; |
| 1004 | |
| 1005 | var getNodeIndex = function getNodeIndex(node) { |
| 1006 | return [].concat(_toConsumableArray(node.parentNode.children)).indexOf(node); |
nothing calls this directly
no outgoing calls
no test coverage detected