From e9d0a40a12b90d084aa2c6928edf2184ec9f2491 Mon Sep 17 00:00:00 2001 From: Seth McGuinness Date: Fri, 2 Sep 2011 14:26:25 -0500 Subject: [PATCH] Modified jPlayerSelector to allow for a jquery object to be passed in rather than just a string selector. --- js/circle.player.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/circle.player.js b/js/circle.player.js index 02c408d..43eee2d 100644 --- a/js/circle.player.js +++ b/js/circle.player.js @@ -62,7 +62,7 @@ var CirclePlayer = function(jPlayerSelector, media, options) { this.spritePitch = 104; this.spriteRatio = 0.24; // Number of steps / 100 - this.player = $(jPlayerSelector); + this.player = (typeof jPlayerSelector === 'string') ? $(jPlayerSelector) : jPlayerSelector; this.media = $.extend({}, media); this.options = $.extend(true, {}, defaults, options); // Deep copy