From a147bc1d24a198d03267832190ed9f51cbf2212e Mon Sep 17 00:00:00 2001 From: codedread Date: Tue, 6 Sep 2011 08:54:43 -0700 Subject: [PATCH] Initial archive.js --- archive.js | 36 ++++++++++++++++++++++++++++++++++++ binary.js | 1 + 2 files changed, 37 insertions(+) create mode 100644 archive.js diff --git a/archive.js b/archive.js new file mode 100644 index 0000000..0527d83 --- /dev/null +++ b/archive.js @@ -0,0 +1,36 @@ +/** + * archive.js + * + * Provides base functionality for unarchiving. + * + * Licensed under the MIT License + * + * Copyright(c) 2011 Jeff Schiller + */ + +var bitjs = bitjs || {}; +bitjs.archive = bitjs.archive || {}; + +(function() { + +bitjs.archive.UnarchiveEvent = funciton() { + this.type +}; + +bitjs.archive.Unarchiver = function() { + this.listeners_ = []; +}; + +bitjs.archive.Unarchiver.prototype.addEventListener = function() { + +}; + +bitjs.archive.Unarchiver.prototype.removeEventListener = function() { + +}; + +bitjs.archive.Unarchiver.prototype.unarchive = function() { + throw "Error! Abstract method unarchive() in bitjs.archive.Unarchiver called"; +}; + +})(); \ No newline at end of file diff --git a/binary.js b/binary.js index f74d1a3..f401c17 100644 --- a/binary.js +++ b/binary.js @@ -6,6 +6,7 @@ * Licensed under the MIT License * * Copyright(c) 2011 Jeff Schiller + * Copyright(c) 2011 antimatter15 */ var bitjs = bitjs || {};