Skip to content

Commit

Permalink
Bug Fix: Destroy() now works with empty selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
thepag committed May 25, 2011
1 parent 59e88d0 commit 7116684
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions jquery.jplayer/jquery.jplayer.js
Expand Up @@ -8,8 +8,8 @@
* - http://www.gnu.org/copyleft/gpl.html
*
* Author: Mark J Panaghiston
* Version: 2.0.10
* Date: 24th May 2011
* Version: 2.0.11
* Date: 25th May 2011
*/

(function($, undefined) {
Expand Down Expand Up @@ -201,7 +201,7 @@
$.jPlayer.prototype = {
count: 0, // Static Variable: Change it via prototype.
version: { // Static Object
script: "2.0.10",
script: "2.0.11",
needFlash: "2.0.9",
flash: "unknown"
},
Expand Down Expand Up @@ -673,7 +673,7 @@
this.pause(); // Pauses the media and clears any delayed commands used in the HTML solution.
}
$.each(this.css.jq, function(fn, jq) { // Remove any bindings from the interface controls.
jq.unbind(".jPlayer");
jq.length && jq.unbind(".jPlayer"); // Check selector is valid before trying to execute method.
});
if( this.options.emulateHtml ) {
this._destroyHtmlBridge();
Expand Down

0 comments on commit 7116684

Please sign in to comment.