method of static class JsNgram
Description
Callback function to process everything after index loading. Receive the raw result of jQuery ajax requests of loading loading N-gram json index files. Adjust it before processing. Then find results matched and make a final html report.
Example
JsNgram.work = JsNgram.startWork('cat'); $.when.apply($, JsNgram.work.deferred).done(JsNgram.whenSearchRequestDone);
Usage
whenSearchRequestDone(useArgumentsToGetAllAsArray);
Argument useArgumentsToGetAllAsArray is multiple results of jQuery deferred.
Because the input results depend on success, failure, and the number of keys,
the single argument is just a dummy name.
Instead, the buit-in arguments
are used to reconstruct the results.