Class: BrowserDictionaryLoader

BrowserDictionaryLoader


new BrowserDictionaryLoader(dic_path)

BrowserDictionaryLoader inherits DictionaryLoader, using jQuery XHR for download

Parameters:
Name Type Description
dic_path string

Dictionary path

Methods


loadArrayBuffer(url, callback)

Utility function to load gzipped dictionary

Parameters:
Name Type Description
url string

Dictionary URL

callback BrowserDictionaryLoader~onLoad

Callback function

Type Definitions


onLoad(err, buffer)

Callback

Parameters:
Name Type Description
err Object

Error object

buffer Uint8Array

Loaded buffer