1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-30 10:50:19 +02:00

Port script collections to new script system

This commit is contained in:
Dominik Schmidt
2015-01-09 20:20:32 +01:00
parent 2455d5f12d
commit 25ba94f183
20 changed files with 501 additions and 437 deletions

View File

@@ -615,6 +615,12 @@ Tomahawk.PluginManager = {
Tomahawk.registerScriptPlugin(type, object.id);
},
unregisterPlugin: function(type, object) {
this.objects[this.identifyObject(object)] = object;
Tomahawk.log("unregisterPlugin: " + type + " id: " + object.id);
Tomahawk.unregisterScriptPlugin(type, object.id);
},
invokeSync: function (objectId, methodName, params) {
if (!this.objects[objectId]) {