diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index 3be31d831..ad77cb8e9 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -778,7 +778,9 @@ Tomahawk.PluginManager = { } } - if (typeof this.objects[objectId][methodName] !== 'function') { + if (typeof this.objects[objectId][methodName] !== 'function' && this.objects[objectId][methodName]) { + return this.objects[objectId][methodName]; + } else if (typeof this.objects[objectId][methodName] !== 'function') { throw new Error('\'' + methodName + '\' on ScriptObject ' + objectId + ' is not a function', typeof this.objects[objectId][methodName]); }