Commit c8add2b2 authored by Julian Frosch's avatar Julian Frosch
Browse files

References Issue #7; Created Approximator-stub

parent 94d2d055
var method = Approximator.prototype;
// constructor
function Approximator(paths, precision) {
this._paths = paths;
this._precision = precision;
}
/**
example method stub
*/
method.approximate = function(callback) {
// do something
};
module.exports = Approximator;
......@@ -12,7 +12,7 @@ $(function(){
e.preventDefault();
var file = e.dataTransfer.files[0];
// TODO: check for filetype (maybe via regex)
// TODO: remove
console.log('File you dragged here is', file.path);
......@@ -26,6 +26,8 @@ $(function(){
// Do something with the result
console.log("Data fetched, printing:");
console.dir(result);
var approximator = new Approximator(result, null);
// do something more :)
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment