Permalink
Browse files

fixed some javascript crap

  • Loading branch information...
ojii
ojii committed Jun 17, 2010
1 parent 1b27857 commit 70365031667a194de34e7138d14856bfbc8a627e
Showing with 5 additions and 4 deletions.
  1. +1 −1 jplayer/__init__.py
  2. +4 −3 jplayer/media/jplayer/js/cmsplayer.js
View
@@ -1 +1 @@
-__version__ = '0.1.6'
+__version__ = '0.1.7'
@@ -110,12 +110,13 @@ function cmsplayer_ready (element, options)
(function($) {
$.fn.cmsPlayer = function(options) {
+ var das = $(this);
if (!options){
var options = {};
}
$.extend(options, {
- ready: cmsplayer_ready(this, options)
- })
+ ready: function(){cmsplayer_ready(das, options)}
+ });
var fulloptions = {
autoplay: true,
autonext: true
@@ -126,7 +127,7 @@ function cmsplayer_ready (element, options)
dbg("[CMSPLAYER] ERROR: playerid and playlist *must* be defined!");
return this;
}
- this.jPlayer(fulloptions);
+ $(das).jPlayer(fulloptions);
return this;
};
})(jQuery);

0 comments on commit 7036503

Please sign in to comment.