fix(media): fix issue with create method

closes #1333
This commit is contained in:
Ibby Hadeed 2017-04-14 09:19:25 -04:00 committed by GitHub
parent d30b534150
commit 6bba72d32a

View File

@ -255,8 +255,7 @@ export class MediaPlugin {
// Creates a new media object
// Resolves with the media object
// or rejects with the error
const instance = new Media(src, resolve, reject, onStatusUpdate);
return resolve(new MediaObject(instance));
const instance = new Media(src, () => resolve(new MediaObject(instance)), reject, onStatusUpdate);
});
}