Comparing version 2.3.1 to 2.3.2
@@ -5,3 +5,3 @@ { | ||
"description": "A JavaScript implementation of the Lempel-Ziv-Markov (LZMA) chain compression algorithm", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"homepage": "http://nmrugg.github.com/LZMA-JS/", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -77,4 +77,3 @@ LZMA Everywhere [![Travis CI](https://travis-ci.org/nmrugg/LZMA-JS.svg)](https://travis-ci.org/nmrugg/LZMA-JS/branches) | ||
/// otherwise, it will return a Uint8Array instance. | ||
/// If the optional is_utf8 parameter is set to false, decompression always returns a Uint8Array. | ||
my_lzma.decompress(byte_array[, is_utf8 = true], on_finish(result, error) {}, on_progress(percent) {}); | ||
my_lzma.decompress(byte_array, on_finish(result, error) {}, on_progress(percent) {}); | ||
``` | ||
@@ -90,3 +89,3 @@ | ||
/// To decompress: | ||
result = my_lzma.decompress(byte_array[, is_utf8 = true]); | ||
result = my_lzma.decompress(byte_array); | ||
``` | ||
@@ -131,3 +130,3 @@ | ||
LZMA.decompress(byte_array[, is_utf8 = true], on_finish(result, error) {}, on_progress(percent) {}); | ||
LZMA.decompress(byte_array, on_finish(result, error) {}, on_progress(percent) {}); | ||
``` | ||
@@ -134,0 +133,0 @@ |
@@ -53,5 +53,5 @@ //! © 2015 Nathan Rugg <nmrugg@gmail.com> | MIT | ||
}, | ||
decompress: function decompress(byte_arr, is_utf8, on_finish, on_progress) { | ||
decompress: function decompress(byte_arr, on_finish, on_progress) { | ||
if (global_var.LZMA_WORKER) { | ||
global_var.LZMA_WORKER.decompress(byte_arr, is_utf8, on_finish, on_progress); | ||
global_var.LZMA_WORKER.decompress(byte_arr, on_finish, on_progress); | ||
} else { | ||
@@ -61,3 +61,3 @@ /// Wait | ||
{ | ||
fake_lzma.decompress(byte_arr, is_utf8, on_finish, on_progress); | ||
fake_lzma.decompress(byte_arr, on_finish, on_progress); | ||
}, 50); | ||
@@ -146,4 +146,4 @@ } | ||
}, | ||
decompress: function decompress(byte_arr, is_utf8, on_finish, on_progress) { | ||
send_to_worker(action_decompress, byte_arr, is_utf8, on_finish, on_progress); | ||
decompress: function decompress(byte_arr, on_finish, on_progress) { | ||
send_to_worker(action_decompress, byte_arr, false, on_finish, on_progress); | ||
}, | ||
@@ -150,0 +150,0 @@ worker: function worker() { |
Sorry, the diff of this file is too big to display
304391
5671
150