Stupeflix/stupeflix-tasks.js — pull request #1 by digitalcraft (2014-05-08 06:56:25+00:00)
Title: Add server Data to progress event

There is no point in having a progress event if I can't see the progress value.

var progressListener = new function() {
this.onProgress = function(task, status, serverData) {
if(serverData && serverData.progress) {
console.log(status + ' ' + serverData.progress + '%');
}
}
}

task.addListener(progressListener);