kick unused hooks

This commit is contained in:
Claude 2016-09-02 10:22:15 +02:00
parent efc84cd397
commit 71843ce491

View File

@ -224,13 +224,6 @@ ST.filereader = function() {
// How to read any files not specified by readAsMap // How to read any files not specified by readAsMap
readAsDefault: 'DataURL', readAsDefault: 'DataURL',
on: { on: {
beforestart: function(e, file) {
// return false if you want to skip this file
},
loadstart: function(e, file) { /* Native ProgressEvent */ },
progress: function(e, file) { /* Native ProgressEvent */ },
load: function(e, file) { /* Native ProgressEvent */ },
error: function(e, file) { /* Native ProgressEvent */ },
loadend: function(e, file) { loadend: function(e, file) {
try { try {
var words = CryptoJS.enc.Base64.parse(e.target.result.split(',')[1]); var words = CryptoJS.enc.Base64.parse(e.target.result.split(',')[1]);
@ -241,28 +234,13 @@ ST.filereader = function() {
console.info('event: ', e); console.info('event: ', e);
console.info('file: ', file); console.info('file: ', file);
}; };
},
abort: function(e, file) { /* Native ProgressEvent */ },
skip: function(e, file) {
// Called when a file is skipped. This happens when:
// 1) A file doesn't match the accept option
// 2) false is returned in the beforestart callback
},
groupstart: function(group) {
// Called when a 'group' (a single drop / copy / select that may
// contain multiple files) is receieved.
// You can ignore this event if you don't care about groups
},
groupend: function(group) {
// Called when a 'group' is finished.
// You can ignore this event if you don't care about groups
} }
} }
}); });
} }
ST.ace = function() { ST.ace = function() {
//
} }
ST.init = function() { ST.init = function() {