MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / defer

Function defer

docs/static/js/bulma-carousel.js:995–1003  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

993};
994
995var 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
1005var getNodeIndex = function getNodeIndex(node) {
1006 return [].concat(_toConsumableArray(node.parentNode.children)).indexOf(node);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected