MCPcopy
hub / github.com/moxiecode/plupload / _formatData

Function _formatData

js/moxie.js:10135–10145  ·  view source on GitHub ↗
(data, op)

Source from the content-addressed store, hash-verified

10133], function(extensions, Encode) {
10134
10135 function _formatData(data, op) {
10136 switch (op) {
10137 case 'readAsText':
10138 return Encode.atob(data, 'utf8');
10139 case 'readAsBinaryString':
10140 return Encode.atob(data);
10141 case 'readAsDataURL':
10142 return data;
10143 }
10144 return null;
10145 }
10146
10147 var FileReader = {
10148 read: function(op, blob) {

Callers 1

moxie.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected