mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Use integers as object ids
This commit is contained in:
@@ -593,9 +593,10 @@ Tomahawk.base64Encode = function(b) { return window.btoa(b); };
|
|||||||
|
|
||||||
Tomahawk.PluginManager = {
|
Tomahawk.PluginManager = {
|
||||||
objects: {},
|
objects: {},
|
||||||
|
objectCounter: 0,
|
||||||
identifyObject: function (object) {
|
identifyObject: function (object) {
|
||||||
if( !object.hasOwnProperty('id') ) {
|
if( !object.hasOwnProperty('id') ) {
|
||||||
object.id = Tomahawk.uuid();
|
object.id = this.objectCounter++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return object.id;
|
return object.id;
|
||||||
|
Reference in New Issue
Block a user