MCPcopy Index your code
hub / github.com/CodeboxIDE/codebox / done

Function done

client/core/search.js:82–102  ·  view source on GitHub ↗
(results)

Source from the content-addressed store, hash-verified

80
81 _.each(this.handlers, function(handler, name) {
82 var done = function(results) {
83 i = i + 1;
84 if (results) {
85 d.notify({
86 'category': {
87 'title': handler.title
88 },
89 'results': _.chain(results)
90 .map(_.partial(that.normResult, handler))
91 .value(),
92 'query': query
93 });
94 }
95 if (i == n) {
96 if (errors.length == 0) {
97 d.resolve(n);
98 } else {
99 d.reject(errors);
100 }
101 }
102 };
103
104 if (!user.get("settings.search."+name, true)) return done();
105

Callers 2

search.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected