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:
parent
3138ec9f40
commit
b2c3ab8532
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user