diff --git a/src/player.js b/src/player.js index 1ff5aad..684c70e 100644 --- a/src/player.js +++ b/src/player.js @@ -6,6 +6,9 @@ */ playerjs.Player = function(elem, options){ + if (!(this instanceof playerjs.Player)) { + return new playerjs.Player(elem, options); + } this.init(elem, options); };