What is the purpose of the above line of code. I'm specifically confused by OR-ing the 'function() {}'. Why the empty function? To give a little more context to the line of code, here is the more complete function definition.
this.detectQRCode = function(imageData, callback) {
callback = callback || function() {};
client.decode(imageData, function(result) {
if(result !== undefined) {
self.currentUrl = result;
}
callback(result);
});
};