1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-14 13:01:53 +02:00

Use integers as object ids

This commit is contained in:
Dominik Schmidt 2014-12-05 06:10:31 +01:00
parent 3138ec9f40
commit b2c3ab8532

View File

@ -593,9 +593,10 @@ Tomahawk.base64Encode = function(b) { return window.btoa(b); };
Tomahawk.PluginManager = {
objects: {},
objectCounter: 0,
identifyObject: function (object) {
if( !object.hasOwnProperty('id') ) {
object.id = Tomahawk.uuid();
object.id = this.objectCounter++;
}
return object.id;