mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-15 21:43:00 +02:00
Make params for nativeScriptJobs optional
This commit is contained in:
parent
29aa9546a8
commit
e8aa2e6de9
@ -885,6 +885,8 @@ Tomahawk.NativeScriptJobManager = {
|
||||
idCounter: 0,
|
||||
deferreds: {},
|
||||
invoke: function (methodName, params) {
|
||||
params = params || {};
|
||||
|
||||
var requestId = this.idCounter++;
|
||||
var deferred = RSVP.defer();
|
||||
this.deferreds[requestId] = deferred;
|
||||
|
Loading…
x
Reference in New Issue
Block a user