1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Address simple issues raised in PR

This commit is contained in:
Dominik Schmidt
2014-12-05 03:22:59 +01:00
parent 8ecb67178b
commit 3d4cfa0161
8 changed files with 20 additions and 21 deletions

View File

@@ -594,7 +594,7 @@ Tomahawk.base64Encode = function(b) { return window.btoa(b); };
Tomahawk.PluginManager = {
objects: {},
identifyObject: function (object) {
if( object.id === undefined ) {
if( !object.hasOwnProperty('id') ) {
object.id = Tomahawk.uuid();
}
@@ -612,7 +612,7 @@ Tomahawk.PluginManager = {
requestId: requestId,
data: result
});
},function (error) {
}, function (error) {
Tomahawk.reportScriptJobResults({error: error});
});
}