mirror of
https://github.com/calzoneman/sync.git
synced 2024-09-13 04:32:09 +00:00
only execute callback if it's not undefined
This commit is contained in:
parent
949299c5e5
commit
f5528c766f
@ -1000,7 +1000,9 @@ PlaylistModule.prototype.refreshGoogleDocs = function (cb) {
|
|||||||
if (self.current) {
|
if (self.current) {
|
||||||
self.current.media.meta.object = self.current.media.meta.object || null;
|
self.current.media.meta.object = self.current.media.meta.object || null;
|
||||||
}
|
}
|
||||||
|
if (cb) {
|
||||||
cb();
|
cb();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!this.current || this.current.media.type !== "gd") {
|
if (!this.current || this.current.media.type !== "gd") {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user